New answers tagged elisp-macros
0
votes
Dynamic Keybind Without Use of Macro
I don't use Spacemacs. Does this do what you want?
(defun bind-current-file ()
`(spacemacs/set-leader-keys "of" (lambda ()
(interactive)
...
2
votes
Accepted
Dynamic Keybind Without Use of Macro
There are a couple of other options. With lexical bindings, you could do this:
(defun bind-current-file ()
(let (the-file (buffer-file-name))
(spacemacs/set-leader-keys "of"
(...
Top 50 recent answers are included
Related Tags
elisp-macros × 111elisp × 25
byte-compilation × 9
functions × 7
latex × 4
backquote × 4
replace × 3
lexical-scoping × 3
eval × 3
common-lisp × 3
doc-strings × 3
org-mode × 2
auctex × 2
regular-expressions × 2
flycheck × 2
variables × 2
quote × 2
documentation × 2
symbols × 2
require × 2
let-binding × 2
defun × 2
apply × 2
funcall × 2
macroexpansion × 2