Created
September 28, 2021 03:49
-
-
Save crvdgc/da858a167271ffc905dee8403ccc0c28 to your computer and use it in GitHub Desktop.
Scroll half screen in emacs as in vim
This file contains hidden or 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 scroll-up-half-screen () | |
"<C-d> a la Vim" | |
(interactive) | |
(scroll-up-command) | |
(recenter)) | |
(global-set-key (kbd "C-;") 'scroll-up-half-screen) | |
(defun scroll-down-half-screen () | |
"<C-u> a la Vim" | |
(interactive) | |
(scroll-down-command) | |
(recenter)) | |
(global-set-key (kbd "C-'") 'scroll-down-half-screen) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment