Skip to content

Commit b17f3f6

Browse files
committed
fix[emacs]: add embark mappings after consult load
Force loading embark and avoid the first consult call maybe not having the desired actions mapped
1 parent 2b64b74 commit b17f3f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dots/emacs/spacemacs.d/layers/kzk-copilot/packages.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
(dolist (binding bindings)
3838
(define-key kzk/aider-map (kbd (car binding)) (cdr binding))))
3939

40-
(with-eval-after-load 'embark
40+
(with-eval-after-load 'consult
41+
(require 'embark)
4142
(define-key embark-buffer-map
4243
(kbd "M-%") #'kzk/aider-add-buffer)
4344

@@ -165,7 +166,8 @@
165166
(dolist (binding bindings)
166167
(define-key kzk/copilot-chat-map (kbd (car binding)) (cdr binding)))))
167168

168-
(with-eval-after-load 'embark
169+
(with-eval-after-load 'consult
170+
(require 'embark)
169171
(define-key embark-buffer-map
170172
(kbd "M-&") #'kzk/copilot-chat-add-buffer)))
171173

0 commit comments

Comments
 (0)