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: Tassilo Horn
Subject: Re: emacs keybinding syntaxes bewilderment
Date: Mon, 17 Dec 2007 10:38:58 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

rustom <rustompmody@gmail.com> writes:

Hi!

> I am using emacs for the last 15 years but every time I try to do a
> define-key or global-set-key, I have to fish around in the info pages
> to get the key syntax right.

Ok, there are a lot of alternatives, but with `kbd' you're always on the
safe side.  Simply do `C-h k <key you want to bind>'.  That will show
you the right synctax for `kbd'.

Example: `C-h k C-c M-t' echoes

  C-c M-t is undefined

So you cold use

  (define-key foo-bar-map (kbd "C-c M-t") 'some-command)

Bye,
Tassilo





reply via email to

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