* How can a command find out which key-sequence has evoked it?
@ 2013-05-31 18:45 esabof
2013-05-31 19:30 ` esabof
0 siblings, 1 reply; 2+ messages in thread
From: esabof @ 2013-05-31 18:45 UTC (permalink / raw)
To: help-gnu-emacs
Ideally in kbd syntax.
Evgeni
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How can a command find out which key-sequence has evoked it?
2013-05-31 18:45 How can a command find out which key-sequence has evoked it? esabof
@ 2013-05-31 19:30 ` esabof
0 siblings, 0 replies; 2+ messages in thread
From: esabof @ 2013-05-31 19:30 UTC (permalink / raw)
To: help-gnu-emacs
Found it:
(global-set-key
(kbd "C-x C-v C-b")
(lambda ()
(interactive)
(message "Evoked by: %s"
(key-description (this-command-keys)))))
On Friday, May 31, 2013 7:45:39 PM UTC+1, esa...@gmail.com wrote:
> Ideally in kbd syntax.
>
>
>
> Evgeni
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-31 19:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-31 18:45 How can a command find out which key-sequence has evoked it? esabof
2013-05-31 19:30 ` esabof
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).