[Top][All Lists]

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

Re: Print out my key-sequences

From: Lennart Borgman
Subject: Re: Print out my key-sequences
Date: Sun, 18 Apr 2010 01:00:58 +0200

On Sun, Apr 18, 2010 at 12:06 AM, Andrea Crotti
<address@hidden> wrote:
> Lennart Borgman <address@hidden> 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/ -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)

(growl-popup (format "%s" last-command))

> Debugger entered--Lisp error: (wrong-type-argument sequencep 
> self-insert-command)

reply via email to

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