From: Antoine Levitt <antoine.levitt@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Adventures in key mapping
Date: Tue, 10 May 2011 15:45:40 +0200 [thread overview]
Message-ID: <87iptipt2z.fsf@gmail.com> (raw)
In-Reply-To: 20110510133113.5E0E751023A@outside.256.com
10/05/11 15:31, sdn.gnuem@mailnull.com
> I wanted to assign something to the C-, (control comma) key sequence.
> My first attempt was:
>
>
>
> (local-set-key "\C-," 'some-function)
Why don't people use "kbd" more? It translates user-friendly bindings to
low-level representation.
Here, you'd just use
(local-set-key (kbd "C-,") 'some-function)
or whatever gets reported by C-h k. No need to wander into the
intricacies of emacs key system.
prev parent reply other threads:[~2011-05-10 13:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-10 13:31 Adventures in key mapping sdn.gnuem
2011-05-10 13:45 ` Antoine Levitt [this message]
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=87iptipt2z.fsf@gmail.com \
--to=antoine.levitt@gmail.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.