From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: How to move the cursor to the bottom of the screen? Date: Thu, 10 Jan 2008 08:15:46 +0000 Message-ID: <20080110081546.GA1360@muc.de> References: <47851D69.8010101@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199954022 8685 80.91.229.12 (10 Jan 2008 08:33:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2008 08:33:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ye ilho Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 10 09:34:03 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 1JCsrP-0002qM-K3 for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2008 09:33:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCsr1-0004Gr-SD for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2008 03:33:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCsqm-0004GU-73 for help-gnu-emacs@gnu.org; Thu, 10 Jan 2008 03:33:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCsqk-0004GG-Gg for help-gnu-emacs@gnu.org; Thu, 10 Jan 2008 03:33:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCsqk-0004GD-Ao for help-gnu-emacs@gnu.org; Thu, 10 Jan 2008 03:33:18 -0500 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JCsqj-0008SL-PY for help-gnu-emacs@gnu.org; Thu, 10 Jan 2008 03:33:18 -0500 Original-Received: (qmail 27387 invoked by uid 3782); 10 Jan 2008 08:06:10 -0000 Original-Received: from acm.muc.de (p57AF5972.dip.t-dialin.net [87.175.89.114]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 10 Jan 2008 09:06:08 +0100 Original-Received: (qmail 1710 invoked by uid 1000); 10 Jan 2008 08:15:46 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 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:50617 Archived-At: Hi, Ye! On Wed, Jan 09, 2008 at 02:23:38PM -0500, Ye ilho wrote: > > > I am simply trying to go to the top/middle/bottom of the screen I see > > > at the moment. > > > I also tried your suggestion but that will take me to the > > > beginning/end of buffer but not necessarily what I see on the screen > > > at the moment. > > > > > > Try > > M-r > > C-- M-r > > C-1 M-r > Thank you! That was what I was looking for. That's not quite what you were looking for - You said "in one keystroke". You can get this by having special commands for this. Here are the commands I use: (defun screen-top () "Move the point to the top of the screen." (interactive) (move-to-window-line 0)) (defun screen-bottom () "Move the point to the bottom of the screen." (interactive) (move-to-window-line -1)) (global-set-key [C-left] 'screen-top) (global-set-key [C-right] 'screen-bottom) Copy these lines into your .emacs file (if necessary, create this file by doing C-x C-f ~/.emacs). C- will then go to top of screen, C- to bottom of screen. Modify the last two of these lines if you prefer different key sequences. > -- > YES, JESUS LOVES YOU, TOO. > For God so loved the world that he gave his one and only Son, that > whoever believes in him shall not perish but have eternal life(John > 3:16). This is very off-topic, but I've never understood the logic connecting the second bit of that sentence to the first. Couldn't God have somehow arranged eternal life without being complicit in torturing somebody to death first? -- Alan Mackenzie (Nuremberg, Germany).