From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: How can I move my cursor 80 characters with a key binding? Date: Sun, 25 Dec 2005 18:50:40 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: <4SBrf.307$M%4.71@newsread3.news.atl.earthlink.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135536862 30548 80.91.229.2 (25 Dec 2005 18:54:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Dec 2005 18:54:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 25 19:54:20 2005 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eqb0d-000462-9N for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Dec 2005 19:54:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eqb1n-00069O-6q for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Dec 2005 13:55:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!newsread3.news.atl.earthlink.net.POSTED!0847253b!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-NNTP-Posting-Host: 4.159.38.251 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread3.news.atl.earthlink.net 1135536640 4.159.38.251 (Sun, 25 Dec 2005 10:50:40 PST) Original-NNTP-Posting-Date: Sun, 25 Dec 2005 10:50:40 PST Original-Xref: shelby.stanford.edu gnu.emacs.help:136606 Original-To: help-gnu-emacs@gnu.org 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:32225 Archived-At: "Scott Teresi (sent by Nabble.com)" wrote in message news:mailman.20378.1135491010.20277.help-gnu-emacs@gnu.org... I'm trying to figure out how to bind a key combination to a function which would move the cursor forward about 80 characters (or back 80 characters). I sometimes type very long lines in emacs and would like to be able to navigate through the line quicker than one space at a time or one word at a time. Thanks for any advice anyone can provide! Scott Sent from the Emacs - Help forum at Nabble.com: How can I move my cursor 80 characters with a key binding? The fastest way to accomplish this is to use incremental search (either C-s or C-r). Find a word or substring you want to move to and then press C-s to move forward or C-r to move backward. Hold down Ctl key and keep pressing s or r until you get to the instance of the substring you want and then press Return. The cursor will then be positioned after the substring. I would bet a not inconsequential sum of money that this will turn out to me (much!) faster than hardwiring a "forward80" function to a keychord. Ed.