help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to scroll while keeping the position of the point with respect t


From: Ekkehard Görlach
Subject: Re: How to scroll while keeping the position of the point with respect to the text?
Date: Wed, 05 Sep 2007 21:33:30 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt)

Hi,

I have 

(global-set-key [M-up] 
 (lambda() (interactive) (scroll-down 1) (previous-line 1)))
(global-set-key [M-down] 
 (lambda() (interactive) (scroll-up 1) (next-line 1)))
(global-set-key [S-up] 
 (lambda() (interactive) (scroll-up 1)))
(global-set-key [S-down] 
 (lambda() (interactive) (scroll-down 1)))

in my .emacs. Thus I could use Shift-up/down to scroll and keep the
position of the point wrt the text (Ithink that was what you were
looking for) or use M-up/down to scroll the text underneath the point.

Ekkehard




reply via email to

[Prev in Thread] Current Thread [Next in Thread]