unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* C-LeftArrow as backward-word
@ 2010-01-15  9:09 pg@gmail.com
  0 siblings, 0 replies; only message in thread
From: pg@gmail.com @ 2010-01-15  9:09 UTC (permalink / raw)
  To: help-gnu-emacs

I want to use control+LeftArrow to move the cursor to the previous
word, and control+RightArrow to move to the next word in Emacs 21
running in xterm. When I press those, I get '5D' and '5C' inserted at
the cursor instead. So I type

M-x global-set-key RET

Then I press Control+LeftArrow, and enter the command 'backward-word'.

But nothing has changed; when I press Control-LeftArrow, I still get
'5D' inserted.

I also tried putting the following in my ~/.emacs, with no effect:

(global-set-key (kbd "M-[ 5 d") 'backward-word)
(global-set-key (kbd "M-[ 5 c") 'forward-word)

I am not subscribed to the list, so please explicitly add my email
address in your replies.

Thanks for your help!


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-15  9:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-15  9:09 C-LeftArrow as backward-word pg@gmail.com

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).