help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I move my cursor 80 characters with a key binding?


From: Cameron Desautels
Subject: Re: How can I move my cursor 80 characters with a key binding?
Date: Sun, 25 Dec 2005 00:31:13 -0600
User-agent: Mutt/1.5.10i

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 <cam@apt2324.com>


"The smallest minority on earth is the individual. Those who deny
individual rights cannot claim to be defenders of minorities."
      --Ayn Rand




reply via email to

[Prev in Thread] Current Thread [Next in Thread]