unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Max Rubin <merubin@princeton.edu>
To: help-gnu-emacs@gnu.org
Subject: Help with setting a key (C-<right> moving a full word to the right)
Date: Thu, 6 Jun 2013 23:20:26 -0400	[thread overview]
Message-ID: <CABYDen2wGhCgoXJ5GTK6i_ZuJAttq=zODpnezhrmW6aR14MBsA@mail.gmail.com> (raw)

Hey there helpful listservers!

I only discovered today that you can edit your .emacs file and add in
custom keys and change the settings, and I've unfortunately run into a
problem.  I want ctrl+right arrow to move forward one whole word at a time,
and ctrl+left arrow to move back a whole word at a time.  The keys M-f and
M-b already do this using 'forward-word and 'backward-word, but I cannot
figure out how represent C+<right/left arrow>.  I've tried "
(global-set-key (kbd "C-<right>") 'forward-word " but that doesn't work.
In fact, no key name that exists in angle brackets (<f1>, <f9>, <home>,
<end>) work.  If I changed it to " (global-set-key (kbd "C-l")
'forward-word ", then it works as expected, so my computer is definitely
not comprehending the angle bracket keys.

Anyone know what is wrong and how to fix it?

Thank you,
Max


             reply	other threads:[~2013-06-07  3:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07  3:20 Max Rubin [this message]
2013-06-07  7:06 ` Help with setting a key (C-<right> moving a full word to the right) Eli Zaretskii
2013-06-07  7:26 ` Jambunathan K
2013-06-28 16:00   ` Max Rubin
2013-06-28 16:38     ` Peter Dyballa
     [not found] <mailman.1133.1370587085.22516.help-gnu-emacs@gnu.org>
2013-06-07 19:06 ` Emanuel Berg
2013-06-07 20:00   ` Eli Zaretskii
     [not found]   ` <mailman.1189.1370635224.22516.help-gnu-emacs@gnu.org>
2013-06-07 20:37     ` Emanuel Berg
2013-06-08  3:31       ` Eli Zaretskii
     [not found]       ` <mailman.1201.1370662319.22516.help-gnu-emacs@gnu.org>
2013-06-08 16:28         ` Emanuel Berg
2013-06-09  0:46           ` Bruno Félix Rezende Ribeiro
     [not found]           ` <mailman.1253.1370740031.22516.help-gnu-emacs@gnu.org>
2013-06-09  1:29             ` Emanuel Berg

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='CABYDen2wGhCgoXJ5GTK6i_ZuJAttq=zODpnezhrmW6aR14MBsA@mail.gmail.com' \
    --to=merubin@princeton.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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).