From: "Ian Crowther" <i_crowther@hotmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Binding meta and arrow
Date: Sun, 15 May 2005 00:51:41 +0100 [thread overview]
Message-ID: <BAY102-F10114A3C10662A588C673BFB130@phx.gbl> (raw)
In-Reply-To: <17d3f0504b41d52545c24a81ad9af19e@Web.DE>
>Just use a name of a function instead of the string. For example:
> (global-set-key [M-left] 'beginning-of-line)
>(The way you used global-set-key is meant for macros: the thing inside
>quotes should be a sequence of one or more keys, it cannot be an
>arbitrary string, and it certainly isn't displayed in the echo area,
>it's fed back to the Emacs keyboard input.)
Well thanks, but I have exactly the same problem. If I do:
(global-set-key [left] 'beginning-of-line)
it does exactly what I expect. I press left and it goes to the line start.
The following still don't work:
(global-set-key [M-left] 'beginning-of-line)
(global-set-key [A-left] 'beginning-of-line)
(global-set-key [alt left] 'beginning-of-line)
(global-set-key [meta left] 'beginning-of-line)
After evaluating all of them I still get "ESC <left> is undefined" if I do
"C-h c M-left".
Thanks for correcting my fumbled attempt at lisp, but I'm still stuck.
Anybody got any other ideas?
next prev parent reply other threads:[~2005-05-14 23:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 23:27 Binding meta and arrow Ian Crowther
2005-05-14 7:13 ` Eli Zaretskii
2005-05-14 15:56 ` Peter Dyballa
2005-05-14 23:51 ` Ian Crowther [this message]
2005-05-15 9:32 ` Peter Dyballa
2005-05-16 1:01 ` Ian Crowther
2005-05-16 8:50 ` Peter Dyballa
[not found] <mailman.5162.1116027341.2819.help-gnu-emacs@gnu.org>
2005-05-16 15:49 ` Stefan Monnier
2005-05-18 13:56 ` Ehud Karni
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY102-F10114A3C10662A588C673BFB130@phx.gbl \
--to=i_crowther@hotmail.com \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.