From: Timothy Hobbs <tim.thelion@gmail.com>
To: EMACS list <help-gnu-emacs@gnu.org>
Subject: Re: Cursor stays in middle of frame vertically- minor mode?
Date: Thu, 10 Apr 2008 21:14:09 -0700 [thread overview]
Message-ID: <m3zls1owoe.fsf@xo-10-E6-7E.localdomain> (raw)
In-Reply-To: <m2abk2gnnn.fsf@jensteich.de> (Jens Teich's message of "Thu\, 10 Apr 2008 09\:43\:56 +0200")
Jens Teich <spamtrap@jensteich.de> writes:
> David Bush <twixt@cstone.net> writes:
>
>> I want the cursor to stay in the middle line of my frame as I view and
>> edit.
>
> You might be looking for centered-cursor-mode, see
>
> http://www.emacswiki.org/cgi-bin/wiki/centered-cursor-mode.el
>
> Jens
You might also be interested in looking at this.
http://www.timthelion.com/cgi-bin/blosxom.cgi//emacs-polarity-reader.html
Though I'll note that my recenter-non-flashy is not perfect, and since the flashyness is only a problem with x11 emacs and I use -nw, I use at home:
(defadvice next-line (after scroll-with-cursor activate)
"scroll the window as you move the cursor"
(recenter))
(defadvice previous-line (after scroll-with-cursor activate)
"scroll the window as you move the cursor"
(recenter))
I don't use this, I lie, I'm using a small screen and so I keep the cursor at the very beginning and end of the screen like so:
(defadvice next-line (after scroll-with-cursor activate)
"scroll the window as you move the cursor"
(recenter (window-height)))
(defadvice previous-line (after scroll-with-cursor activate)
"scroll the window as you move the cursor"
(recenter 0))
next prev parent reply other threads:[~2008-04-11 4:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-09 14:45 Cursor stays in middle of frame vertically- minor mode? David Bush
2008-04-10 7:43 ` Jens Teich
2008-04-11 2:31 ` David Bush
2008-04-11 4:14 ` Timothy Hobbs [this message]
2008-04-11 12:44 ` Nikolaj Schumacher
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3zls1owoe.fsf@xo-10-E6-7E.localdomain \
--to=tim.thelion@gmail.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.
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).