Created
February 8, 2013 10:08
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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