Don't depend on org-mode being loaded for consult maps

This commit is contained in:
Evie Litherland-Smith 2023-11-10 07:24:53 +00:00
parent 1a65f52bef
commit 9260a84bbc
2 changed files with 4 additions and 6 deletions

View file

@ -500,15 +500,14 @@ manually with something like this:
("<remap> <imenu>" . consult-imenu )
("<remap> <switch-to-buffer>" . consult-buffer)
("<remap> <project-switch-to-buffer>" . consult-project-buffer)
("<remap> <org-goto>" . consult-org-heading)
("C-c s s" . consult-line)
("C-c s f" . consult-fd)
("C-c s g" . consult-ripgrep)
("C-c s e" . consult-flymake)
("C-c s t" . consult-theme)
:map minibuffer-local-map
("C-r" . consult-history)
:map org-mode-map
("<remap> <org-goto>" . consult-org-heading))
("C-r" . consult-history))
:config (setq completion-in-region-function #'consult-completion-in-region))
(use-package embark

View file

@ -583,15 +583,14 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
("<remap> <imenu>" . consult-imenu )
("<remap> <switch-to-buffer>" . consult-buffer)
("<remap> <project-switch-to-buffer>" . consult-project-buffer)
("<remap> <org-goto>" . consult-org-heading)
("C-c s s" . consult-line)
("C-c s f" . consult-fd)
("C-c s g" . consult-ripgrep)
("C-c s e" . consult-flymake)
("C-c s t" . consult-theme)
:map minibuffer-local-map
("C-r" . consult-history)
:map org-mode-map
("<remap> <org-goto>" . consult-org-heading))
("C-r" . consult-history))
:config (setq completion-in-region-function #'consult-completion-in-region))
#+end_src