Skip to content

Instantly share code, notes, and snippets.

@jsvnm
Created February 8, 2013 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsvnm/4737877 to your computer and use it in GitHub Desktop.
Save jsvnm/4737877 to your computer and use it in GitHub Desktop.
move to next eol with C-S-e (next-line and then move to end of that if we're already at eol, otherwise just go to end of current line) tried apropos and googled for maybe three minutes then wrote this in one. same functionality probably exists either as part of standard emacs or better implemented by someone with a clue.
(defun move-next-end-of-line (arg)
"if at eol go to next line. in any case go to eol."
(interactive "^p")
(when (eolp)
(next-line))
(move-end-of-line arg))
(global-set-key (kbd "C-S-e") 'move-next-end-of-line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment