Commits

Ahmad Khayyat committed ca07ca6

emacs: single-line scrolling without moving the point

  • Participants
  • Parent commits 0ea5a4a

Comments (0)

Files changed (1)

 ;; Use Scroll-Lock key to toggle scroll-lock-mode
 (global-set-key (quote [Scroll_Lock]) 'scroll-lock-mode)
 
+;; Single-line scrolling without moving the point
+(global-set-key [(control down)] (lambda () (interactive) (scroll-up   1)) )
+(global-set-key [(control up  )] (lambda () (interactive) (scroll-down 1)) )
+
 ;;====================
 ;;  Clipboard Tweaks
 ;;====================