| Re: Cursor at center of window |
|
 |
|
 |
|
 |
|
 |
Group: gnu.emacs.help · Group Profile
Author: Lennart Borgman (gmail)Lennart Borgman (gmail) Date: Sep 12, 2008 15:10
Mauricio wrote:
>>> Hi,
>>>
>>> Is it possible to ask emacs to
>>> keep the cursor at the center
>>> of the window? For instance, when
>>> I press C-n, the text would go
>>> one line up, instead of the cursor
>>> going one line down.
>>
>> C-l
>>
>> So you can type: C-n C-l
>> or if you want, you can rebind C-n to a command doing both.
>>
>
> But then I would have to rebind
> all moving commands. Is there some
> way to "repel" the cursor from the
> borders? Or maybe some after moving
> hook where I could call C-l?
Take a look at
(info "(emacs) Auto Scrolling")
especially the variable `scroll-margin'.
|