drewp for 2008 May 27 (entry 2)

< MPD web music player
Communicating with sunspots >

[Trackback URL for this entry] 2008-05-27T22:22:06 emacs scroll keys:

I like making the keypad plus/minus keys scroll my emacs window without moving the cursor. For ~/.emacs:

(defun scroll-down-keep-cursor ()
;; Scroll the text one line down while keeping the cursor
(interactive)
(scroll-down 1))

(defun scroll-up-keep-cursor ()
;; Scroll the text one line up while keeping the cursor
(interactive)
(scroll-up 1))

(global-set-key [kp-subtract] 'scroll-down-keep-cursor)
(global-set-key [kp-add] 'scroll-up-keep-cursor)
Filed under: emacs

Links from other weblogs:

2008-08-10T23:46:32: hi from feedk.blog3k.net

agree

2008-08-27T12:50:06: b+ñsta kasino from b+ñsta kasino

gleefully Potomac fiscally Claus,


[Main]

Unless otherwise noted, all content licensed by Drew Perttula
under a Creative Commons License.