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

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

Re: Shortcut to have the cursor move X number of lines up or down


From: Bob Proulx
Subject: Re: Shortcut to have the cursor move X number of lines up or down
Date: Sat, 30 Mar 2013 15:58:40 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

Drew Adams wrote:
> Gregory Benjamin wrote:
> > > e.g., `C-6 C-n' moves down 6 lines.
> > 
> > Wouldn't that be: 'C-u 6 C-n'? You can do 'C-u 6 C-p' to go up,
> > or 'C-u -6 C-n' to go up.
> 
> C-6 has the same effect as C-u 6.
> C-- 6 has the same effect as C-u -6.
> C-- has the same effect as C-u -1.

That depends upon whether you are running emacs in a graphics window
or in a terminal window.  If in a graphics window then emacs can tell
that you are pressing Control + 6 individually.  But in a terminal
window then Control+6 produces C-^ instead and sends that to emacs.
And the rest produce a variety of other results.  Control+2 produces
C-@.  Control+3 produces ESC.  And so forth for the rest.

Bob



reply via email to

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