Created
July 1, 2011 08:01
-
-
Save Dubhead/1058070 to your computer and use it in GitHub Desktop.
Emacsで、C-aやC-eの連打を1行スクロールにしてみた
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
(global-set-key (kbd "C-a") | |
'(lambda () | |
(interactive) | |
(if (= (point) (line-beginning-position)) | |
(scroll-down 1)) | |
(beginning-of-line))) | |
(global-set-key (kbd "C-e") | |
'(lambda () | |
(interactive) | |
(if (= (point) (line-end-position)) | |
(scroll-up 1)) | |
(end-of-line))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment