all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Mauricio <briqueabraque@yahoo.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Cursor at center of window
Date: Sat, 13 Sep 2008 00:10:58 +0200	[thread overview]
Message-ID: <48CAE8F2.1050802@gmail.com> (raw)
In-Reply-To: <gaeofc$dlp$1@ger.gmane.org>

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'.




  reply	other threads:[~2008-09-12 22:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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) [this message]
2008-09-12 22:59       ` Mauricio
2008-09-12 18:20 Mauricio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48CAE8F2.1050802@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=briqueabraque@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.