Add newline on the end of file only in prog-modes
Make config work with emacs on terminal