From 4b5098dfff3d4d2fba09e56320f30bfd4d83c369 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 2 Jan 2021 10:02:57 -0600 Subject: Define consult keys after loading consult --- config.org | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/config.org b/config.org index 8360cd0..edc1cd6 100644 --- a/config.org +++ b/config.org @@ -526,25 +526,25 @@ Anyway, I should probably be able to figure out how to properly change the theme :repo "minad/consult")) (require 'consult-selectrum) - (define-key ctl-x-map "b" #'consult-buffer) - (define-key ctl-x-map (kbd "C-r") #'consult-buffer) - (define-key ctl-x-map "4b" #'consult-buffer-other-window) - (define-key ctl-x-map "5b" #'consult-buffer-other-frame) + (with-eval-after-load 'consult + (define-key ctl-x-map "b" #'consult-buffer) + (define-key ctl-x-map (kbd "C-r") #'consult-buffer) + (define-key ctl-x-map "4b" #'consult-buffer-other-window) + (define-key ctl-x-map "5b" #'consult-buffer-other-frame) - (define-key goto-map "o" #'consult-outline) - (define-key goto-map "g" #'consult-line) - (define-key goto-map (kbd "M-g") #'consult-line) - (define-key goto-map "l" #'consult-line) - (define-key goto-map "m" #'consult-mark) - (define-key goto-map "k" #'consult-global-mark) - (define-key goto-map "i" #'consult-imenu) - (define-key goto-map "e" #'consult-error) + (define-key goto-map "o" #'consult-outline) + (define-key goto-map "g" #'consult-line) + (define-key goto-map (kbd "M-g") #'consult-line) + (define-key goto-map "l" #'consult-line) + (define-key goto-map "m" #'consult-mark) + (define-key goto-map "i" #'consult-imenu) + (define-key goto-map "e" #'consult-error) - (global-set-key (kbd "M-y") #'consult-yank-pop) + (global-set-key (kbd "M-y") #'consult-yank-pop) - (define-key help-map "a" #'consult-apropos) + (define-key help-map "a" #'consult-apropos) - (fset 'multi-occur #'consult-multi-occur) + (fset 'multi-occur #'consult-multi-occur)) #+END_SRC **** Marginalia -- cgit 1.4.1-21-gabe81