From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cameron Desautels Newsgroups: gmane.emacs.help Subject: Re: How can I move my cursor 80 characters with a key binding? Date: Sun, 25 Dec 2005 00:31:13 -0600 Message-ID: <20051225063113.GE9520@setzer.hsd1.tx.comcast.net> References: <2089451.post@talk.nabble.com> <20051225062518.GD9520@setzer.hsd1.tx.comcast.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135492302 17253 80.91.229.2 (25 Dec 2005 06:31:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Dec 2005 06:31:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 25 07:31:40 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 1EqPPv-0004Jd-5f for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Dec 2005 07:31:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqPR3-0004KD-78 for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Dec 2005 01:32:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EqPQo-0004K7-3i for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 01:32:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EqPQh-0004Ju-K6 for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 01:32:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqPQh-0004Jr-Gd for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 01:32:27 -0500 Original-Received: from [63.240.77.81] (helo=sccrmhc11.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EqPQI-0008LY-Ox for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 01:32:02 -0500 Original-Received: from apt2324.com ([24.1.141.139]) by comcast.net (sccrmhc11) with SMTP id <20051225063115011005dpvte>; Sun, 25 Dec 2005 06:31:15 +0000 Original-Received: (qmail 31280 invoked by uid 1000); 25 Dec 2005 06:31:13 -0000 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <20051225062518.GD9520@setzer.hsd1.tx.comcast.net> User-Agent: Mutt/1.5.10i 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:32214 Archived-At: On Sun, Dec 25, 2005 at 12:25:18AM -0600, Cameron Desautels wrote: > On Sat, Dec 24, 2005 at 10:08:54PM -0800, Scott Teresi (sent by Nabble.com) wrote: > > 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! > > Is ``C-u 8 0 C-f'' too long for you? You do it with a function if you > really wanted to.. Such a function, btw, could look like this: (global-set-key "\C-cf" '(lambda () (interactive) (forward-char 80))) -- Cameron Desautels "The smallest minority on earth is the individual. Those who deny individual rights cannot claim to be defenders of minorities." --Ayn Rand