help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adventures in key mapping


From: Antoine Levitt
Subject: Re: Adventures in key mapping
Date: Tue, 10 May 2011 15:45:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]