* Cursor at center of window
@ 2008-09-12 18:20 Mauricio
0 siblings, 0 replies; 5+ messages in thread
From: Mauricio @ 2008-09-12 18:20 UTC (permalink / raw)
To: help-gnu-emacs
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.
Thanks,
Maurício
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Cursor at center of window
[not found] <mailman.19136.1221243654.18990.help-gnu-emacs@gnu.org>
@ 2008-09-12 21:26 ` Pascal J. Bourguignon
2008-09-12 21:54 ` Mauricio
0 siblings, 1 reply; 5+ messages in thread
From: Pascal J. Bourguignon @ 2008-09-12 21:26 UTC (permalink / raw)
To: help-gnu-emacs
Mauricio <briqueabraque@yahoo.com> writes:
> 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.
--
__Pascal Bourguignon__ http://www.informatimago.com/
Wanna go outside.
Oh, no! Help! I got outside!
Let me back inside!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Cursor at center of window
2008-09-12 21:26 ` Cursor at center of window Pascal J. Bourguignon
@ 2008-09-12 21:54 ` Mauricio
2008-09-12 22:10 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 5+ messages in thread
From: Mauricio @ 2008-09-12 21:54 UTC (permalink / raw)
To: help-gnu-emacs
>> 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?
Maurício
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Cursor at center of window
2008-09-12 21:54 ` Mauricio
@ 2008-09-12 22:10 ` Lennart Borgman (gmail)
2008-09-12 22:59 ` Mauricio
0 siblings, 1 reply; 5+ messages in thread
From: Lennart Borgman (gmail) @ 2008-09-12 22:10 UTC (permalink / raw)
To: Mauricio; +Cc: help-gnu-emacs
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'.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Cursor at center of window
2008-09-12 22:10 ` Lennart Borgman (gmail)
@ 2008-09-12 22:59 ` Mauricio
0 siblings, 0 replies; 5+ messages in thread
From: Mauricio @ 2008-09-12 22:59 UTC (permalink / raw)
To: help-gnu-emacs
>>>> Hi,
>>>>
>>>> Is it possible to ask emacs to
>>>> keep the cursor at the center
>>>> of the window? (...)
> Take a look at
>
> (info "(emacs) Auto Scrolling")
>
> especially the variable `scroll-margin'.
>
Thanks. scroll-conservatively, scroll-margin
and scroll-preserve-screen-position did
exactly what I wanted.
Best,
Maurício
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-12 22:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.19136.1221243654.18990.help-gnu-emacs@gnu.org>
2008-09-12 21:26 ` Cursor at center of window Pascal J. Bourguignon
2008-09-12 21:54 ` Mauricio
2008-09-12 22:10 ` Lennart Borgman (gmail)
2008-09-12 22:59 ` Mauricio
2008-09-12 18:20 Mauricio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).