[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cursor at center of window
From: |
Lennart Borgman (gmail) |
Subject: |
Re: Cursor at center of window |
Date: |
Sat, 13 Sep 2008 00:10:58 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
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'.