emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs attach an action to any key pressed


From: Magnar Sveen
Subject: Re: Emacs attach an action to any key pressed
Date: Wed, 5 Jun 2013 08:44:22 +0200

Sounds like you're looking for the post-command-hook.

- Magnar


On Wed, Jun 5, 2013 at 7:26 AM, Ivanov Dmitry <address@hidden> wrote:
Suppose, I have the code:

(defun dummy ()
      (interactive)
      (message "aaa"))

(local-set-key (kbd "<left>") 'dummy)

When you click <left> key in the current buffer, it will print "aaa".

Is it possible to attach this action to any key pressed?

I looked into "Format of Keymaps" and "Searching Keymaps" in Emacs info pages, but found no code examples.


reply via email to

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