From: "Drew Adams" <drew.adams@oracle.com>
To: "'Rami A'" <rami.ammari@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Shortcut to have the cursor move X nu,ber of lines up or down
Date: Sat, 30 Mar 2013 07:36:09 -0700 [thread overview]
Message-ID: <9C3363AAAF9F4F749C69465B0EC4B2B2@us.oracle.com> (raw)
In-Reply-To: <4dbd113f-ff71-4761-864a-b11e22fe90e4@googlegroups.com>
> I would like to have the cursor move up or down X number of lines.
> Kind of like C-n and C-p but instead of 1 line to be a
> programmable X number of lines.
`C-h k C-n' tells you that it runs the command `next-line', and that a prefix
arg does what you want: e.g., `C-6 C-n' moves down 6 lines.
If you want a command that always moves a particular number of lines then roll
that argument into the definition.
(defun six-lines-down ()
"..."
(interactive)
(next-line 6))
next prev parent reply other threads:[~2013-03-30 14:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-30 8:31 Shortcut to have the cursor move X nu,ber of lines up or down Rami A
2013-03-30 14:36 ` Drew Adams [this message]
2013-03-30 20:43 ` Shortcut to have the cursor move X number " Gregory Benjamin
2013-03-30 20:50 ` Drew Adams
2013-03-30 21:58 ` Bob Proulx
2013-03-30 22:03 ` Drew Adams
[not found] ` <mailman.23099.1364654185.855.help-gnu-emacs@gnu.org>
2013-03-30 19:49 ` Shortcut to have the cursor move X nu,ber " Rami A
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9C3363AAAF9F4F749C69465B0EC4B2B2@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=rami.ammari@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).