Skip to content

Instantly share code, notes, and snippets.

@Dubhead
Created July 1, 2011 08:01
Show Gist options
  • Save Dubhead/1058070 to your computer and use it in GitHub Desktop.
Save Dubhead/1058070 to your computer and use it in GitHub Desktop.
Emacsで、C-aやC-eの連打を1行スクロールにしてみた
(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