emacs: Added some functions from @magnars, replaced standard goto-line with his version