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

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

Re: Persisting centered cursor with Scroll Lock key


From: Kai Grossjohann
Subject: Re: Persisting centered cursor with Scroll Lock key
Date: Sat, 08 May 2004 21:55:28 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux)

Torsten Bronger <bronger@physik.rwth-aachen.de> writes:

> Yes, C-u 1 and then PgUp/PgDn is what I want to see.

Does this mean that scroll-in-place works after all?

So what you now need is to define single-line scrolling commands.
Then you need to rebind keys C-n, C-p and so on to use the scrolling
commands instead of previous-line and next-line, and so on.

Then you need to write a function which does this and another which
undoes it, and then bind a command to the scroll-lock key which calls
one or the other function.

Hm.  CVS Emacs has a feature where you can rebind commands instead of
keys.  This means you could rebind the previous-line command and thus
simultaneously change all keys that invoke previous-line.  Maybe this
helps?

Kai


reply via email to

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