[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [STUMP] define run-or-raise keybinding with anonymous function
From: |
Tamas Papp |
Subject: |
Re: [STUMP] define run-or-raise keybinding with anonymous function |
Date: |
Tue, 01 Dec 2015 11:19:15 +0100 |
User-agent: |
mu4e 0.9.15; emacs 24.5.1 |
Hi,
Thanks --- I need to learn more about the STUMPWM package, I am working
through the sources now. In the meantime, I realized that I don't need a
macro, just a function:
(defun define-key-run-or-raise (map key command
&optional (props `(:title ,command)))
(define-key map (kbd key)
(format nil "eval-line ~s" `(run-or-raise ,command ',props))))
Best,
Tamas
On Sun, Nov 29 2015, Joram Schrijver <address@hidden> wrote:
> Hi,
>
> Note that StumpWM supplies a macro called DEFPROGRAM-SHORTCUT that
> handles
> creating a run-or-raise command and binding it to a key. It won't be an
> anonymous command, because such a thing doesn't exist, but there's no
> real harm
> in having a command like "calibre" or "iceweasel".
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [STUMP] define run-or-raise keybinding with anonymous function,
Tamas Papp <=