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

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

Re: emacs keybinding syntaxes bewilderment


From: rustom
Subject: Re: emacs keybinding syntaxes bewilderment
Date: Sun, 16 Dec 2007 00:25:46 -0800 (PST)
User-agent: G2/1.0

On Dec 16, 12:22 pm, Mike Mattie <address@hidden> wrote:
>
> That did confuse me for a while. I decided it was time to make it at least 
> consistent in my
> configuration. After asking for some advice I settled on (kbd). This function 
> below takes
> the pain out of keybindings.
>
> I use it as follows:
>
> M-x insert-key-notation
>
> it then prompts for the key sequence, and generates the code.
>
> (defun insert-key-notation ()
>   "inject a complete \(kbd \"sequence\"\) with key notation for a key 
> sequence given by prompt"
>   (interactive)
>   (insert "(kbd \"")
>   (insert (format-kbd-macro (read-key-sequence "Key? " nil t)))
>   (insert "\")")
>   )

Neat! Charming!!
But why is kbd not in the elisp manual?


reply via email to

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