summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2021-08-12 14:21:05 -0500
committerCase Duckworth2021-08-12 14:21:05 -0500
commit166a47f458dd33c95a84c725fe29dbca25ebf26a (patch)
tree969ab19794328d11c2216491ac31adff0c626c51 /init.el
parentAdd comment (diff)
downloademacs-166a47f458dd33c95a84c725fe29dbca25ebf26a.tar.gz
emacs-166a47f458dd33c95a84c725fe29dbca25ebf26a.zip
Check that `consult-crm-map' is bound before assigning things to it
Diffstat (limited to 'init.el')
-rw-r--r--init.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/init.el b/init.el index ac96854..2c1fb85 100644 --- a/init.el +++ b/init.el
@@ -1006,12 +1006,13 @@ if ripgrep is installed, otherwise `consult-grep'."
1006 1006
1007 (with-eval-after-load 'vertico 1007 (with-eval-after-load 'vertico
1008 (with-eval-after-load 'consult 1008 (with-eval-after-load 'consult
1009 (define-key consult-crm-map "\r" #'+vertico-crm-exit) 1009 (when (boundp 'consult-crm-map)
1010 (define-key consult-crm-map "\t" #'vertico-exit) 1010 (define-key consult-crm-map "\r" #'+vertico-crm-exit)
1011 (defun +vertico-crm-exit () 1011 (define-key consult-crm-map "\t" #'vertico-exit)
1012 (interactive) 1012 (defun +vertico-crm-exit ()
1013 (run-at-time 0 nil #'vertico-exit) 1013 (interactive)
1014 (funcall #'vertico-exit))))) 1014 (run-at-time 0 nil #'vertico-exit)
1015 (funcall #'vertico-exit))))))
1015 1016
1016(setup (:straight crux) 1017(setup (:straight crux)
1017 1018