From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Timothy Hobbs Newsgroups: gmane.emacs.help Subject: Re: Cursor stays in middle of frame vertically- minor mode? Date: Thu, 10 Apr 2008 21:14:09 -0700 Message-ID: References: <2af4b$47fcd693$d80c35a9$15591@NAXS.COM> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207887300 12093 80.91.229.12 (11 Apr 2008 04:15:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2008 04:15:00 +0000 (UTC) To: EMACS list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 11 06:15:32 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JkAfj-000438-PZ for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Apr 2008 06:15:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkAf5-0006I3-O8 for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Apr 2008 00:14:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JkAep-0006HQ-My for help-gnu-emacs@gnu.org; Fri, 11 Apr 2008 00:14:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JkAeo-0006GI-BQ for help-gnu-emacs@gnu.org; Fri, 11 Apr 2008 00:14:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkAeo-0006GF-6N for help-gnu-emacs@gnu.org; Fri, 11 Apr 2008 00:14:34 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.176]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JkAeo-0008Uu-1h for help-gnu-emacs@gnu.org; Fri, 11 Apr 2008 00:14:34 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so243869wah.10 for ; Thu, 10 Apr 2008 21:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:references:from:in-reply-to:user-agent:date:message-id:mime-version:content-type; bh=szNncuk6cNPrBZGYAZsFioGjGFT19IQltvAzXxYd1Rs=; b=rEUVAKCBQo53QMl0KqtSX4sc/vjzMtMP1lwlQ+VC2hG5eApTbnxzSyehXBfpeGyiWBxPwH3WFYpt2eGhRtpilvgYpMDx9Pv9b3esND0Qhrf/LwZL5gM6vie5gS1l38p/9/OQG7cZfnN0yn8tpN3u6oS4ukSiKWxqK7QvZbAke7Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:references:from:in-reply-to:user-agent:date:message-id:mime-version:content-type; b=O9xrYZgQRj2UHysu/ovRbnUQaYgk/m5x/JIdBEMf05oNjGHDcnE4yn2cFchNew80DlRKm0FmNytcaQ/JXBe8MQVqwBADeI8vhFLdS4DSqM3SlaP3GD09Ex6M1xA+d+b9YuX8RTIKtg7pAtem3tawY2oSnHdf5xspG3Bi6Vk45cI= Original-Received: by 10.115.22.1 with SMTP id z1mr2940104wai.33.1207887270678; Thu, 10 Apr 2008 21:14:30 -0700 (PDT) Original-Received: from localhost ( [71.112.111.114]) by mx.google.com with ESMTPS id l27sm4170114waf.26.2008.04.10.21.14.29 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Apr 2008 21:14:29 -0700 (PDT) In-Reply-To: (Jens Teich's message of "Thu\, 10 Apr 2008 09\:43\:56 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53236 Archived-At: Jens Teich writes: > David Bush 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))