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: Ivanov Dmitry
Subject: Re: Emacs attach an action to any key pressed
Date: Wed, 5 Jun 2013 11:56:19 +0400

I tried this:

(defun dummy ()
      (interactive)
      (message "aaa")
      (remove-hook 'post-command-hook 'dummy))

(add-hook 'post-command-hook 'dummy)

It prints "aaa" exactly after I press C-x e on add-hook command. But I want it to print only when I press any key afterwards. What should I do?

reply via email to

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