Skip to content

Instantly share code, notes, and snippets.

@punchagan punchagan/scroll.el
Created Oct 5, 2012

Embed
What would you like to do?
Normal scrolling for emacs
(defun bhanu/scroll-up (&optional num)
"Scroll up num number of lines."
(interactive "p")
(scroll-down num)
(previous-line num))
(defun bhanu/scroll-down (&optional num)
"Scroll down num number of lines."
(interactive "p")
(scroll-up num)
(next-line num))
(global-set-key (kbd "C-v") (lambda () (interactive) (bhanu/scroll-up 3)))
(global-set-key (kbd "M-v") (lambda () (interactive) (bhanu/scroll-down 3)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.