[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Print out my key-sequences
From: |
Andrea Crotti |
Subject: |
Re: Print out my key-sequences |
Date: |
Sun, 18 Apr 2010 00:06:35 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.90 (darwin) |
Lennart Borgman <lennart.borgman@gmail.com> writes:
>
> post-command-hook?
Great almost there, it's really not so difficult apparently...
So given this function
--8<---------------cut here---------------start------------->8---
(defun growl-popup (msg)
"Show a popup using growl notification or say it, only working on OSX with
growlnotify in the $PATH"
(interactive)
(if (not (null window-system))
(shell-command (concat "growlnotify -a /Applications/Emacs.app/ -m " msg))
(message msg)))
--8<---------------cut here---------------end--------------->8---
I only need to pass the last command and add a hook that executes it
every time, the only thing missing is how to get a string from the
last-command variable.
Any help?
This doesn't work
(growl-popup last-command)
Debugger entered--Lisp error: (wrong-type-argument sequencep
self-insert-command)
In the doc they say
The last command executed.
Normally a symbol with a function definition, but can be whatever was found
in the keymap, or whatever the variable `this-command' was set to by that
command.
So how am I supposed to print it out?
Thanks
- Print out my key-sequences, Andrea Crotti, 2010/04/07
- Re: Print out my key-sequences, Peter Dyballa, 2010/04/07
- Re: Print out my key-sequences, Andrea Crotti, 2010/04/07
- Re: Print out my key-sequences, suvayu ali, 2010/04/07
- Re: Print out my key-sequences, Andrea Crotti, 2010/04/08
- Re: Print out my key-sequences, Suvayu Ali, 2010/04/10
- Re: Print out my key-sequences, Andrea Crotti, 2010/04/17
- Re: Print out my key-sequences, Kevin Rodgers, 2010/04/17
- Re: Print out my key-sequences, Andrea Crotti, 2010/04/17
- Re: Print out my key-sequences, Lennart Borgman, 2010/04/17
- Re: Print out my key-sequences,
Andrea Crotti <=
- RE: Print out my key-sequences, Drew Adams, 2010/04/17
- RE: Print out my key-sequences, Drew Adams, 2010/04/17
- Re: Print out my key-sequences, Lennart Borgman, 2010/04/17
- Re: Print out my key-sequences, Andrea Crotti, 2010/04/18
- Re: Print out my key-sequences, Andrea Crotti, 2010/04/18
- Re: Print out my key-sequences, Lennart Borgman, 2010/04/18
- Re: Print out my key-sequences, Andrea Crotti, 2010/04/18
- Re: Print out my key-sequences, Thierry Volpiatto, 2010/04/18
- Re: Print out my key-sequences, Lennart Borgman, 2010/04/18
- Re: Print out my key-sequences, Kevin Rodgers, 2010/04/21