New answers tagged

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) ...
user avatar
  • 69.6k
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" (...
user avatar
  • 11.7k

Top 50 recent answers are included