Re: why this keybind does not work



+ "Chengqi(Lars) Song" <songcq gmail com>:

> (mapc (lambda (ki)
>         (let ((k (car ki))
>               (i (cdr ki)))
>           (bind-keys global-keymap (concat "H-" k) '(select-workspace-from-first i))
>         '(("1" . 0)
>           ("2" . 1)
>           ("3" . 2)
>           ("4" . 3)
>           ("5" . 4)))

First thing to try is to replace '(select-workspace-from-first i)
with `(select-workspace-from-first ,i)

See backquoting, in the Macros chapter of the manual.

- Harald


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