From c8a5e6ec1ca85a35f94d6c820c2fd8888373c2ae Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 17 Sep 2024 17:30:22 -0400 Subject: [PATCH] fix: map!: allow :map values to be interpolated With the comma syntax. E.g. (let ((maps '(some-mode-map another-mode-map))) (map! :map ,maps)) This technique was used in the recent rewrite of the Racket module (1baebda), but I forgot to include this change, so Racket users have probably noticed some missing keybinds! This fixes that too. Amend: 1baebdafb3b1 Ref: #7543 --- lisp/doom-keybinds.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/doom-keybinds.el b/lisp/doom-keybinds.el index 73bee7835..144d6b64c 100644 --- a/lisp/doom-keybinds.el +++ b/lisp/doom-keybinds.el @@ -307,7 +307,7 @@ For example, :nvi will map to (list 'normal 'visual 'insert). See (:desc (setq desc (pop rest))) (:map - (doom--map-set :keymaps `(quote ,(ensure-list (pop rest))))) + (doom--map-set :keymaps `(backquote ,(ensure-list (pop rest))))) (:mode (push (cl-loop for m in (ensure-list (pop rest)) collect (intern (concat (symbol-name m) "-map")))