Update the consult configuration
This commit is contained in:
parent
3399260d44
commit
b7531d5a8c
11
README.org
11
README.org
@ -1181,7 +1181,7 @@ Listing [[lst:configure-consult]] configures =consult=.
|
||||
| =consult-goto-line= | {{{kbd(M-g M-g)}}} | =goto-map= |
|
||||
| =consult-goto-line= | {{{kbd(M-g g)}}} | =goto-map= |
|
||||
| =consult-history= | {{{kbd(C-c h)}}} | =global-map= |
|
||||
| =consult-imenu-project= | {{{kbd(M-g i)}}} | =goto-map= |
|
||||
| =consult-imenu= | {{{kbd(M-g i)}}} | =goto-map= |
|
||||
| =consult-keep-lines= | {{{kbd(M-s k)}}} | =search-map= |
|
||||
| =consult-line= | {{{kbd(M-s l)}}} | =search-map= |
|
||||
| =consult-mark= | {{{kbd(M-g m)}}} | =goto-map= |
|
||||
@ -1214,7 +1214,7 @@ Listing [[lst:configure-consult]] configures =consult=.
|
||||
#+begin_src emacs-lisp
|
||||
(when (fboundp 'consult-apropos)
|
||||
(custom-set-variables
|
||||
'(consult-project-root-function #'vc-root-dir))
|
||||
'(consult-project-function #'(lambda (_) (vc-root-dir))))
|
||||
;; C-c bindings (current-global-map)
|
||||
(global-set-key (kbd "C-c h") #'consult-history)
|
||||
(global-set-key (kbd "C-c m") #'consult-mode-command)
|
||||
@ -1233,7 +1233,7 @@ Listing [[lst:configure-consult]] configures =consult=.
|
||||
(define-key goto-map (kbd "o") #'consult-outline)
|
||||
(define-key goto-map (kbd "m") #'consult-mark)
|
||||
(define-key goto-map (kbd "k") #'consult-global-mark)
|
||||
(define-key goto-map (kbd "i") #'consult-imenu-project)
|
||||
(define-key goto-map (kbd "i") #'consult-imenu)
|
||||
(define-key goto-map (kbd "e") #'consult-compile-error)
|
||||
;; M-s bindings (search-map)
|
||||
(define-key search-map (kbd "g") #'consult-git-grep)
|
||||
@ -1243,10 +1243,7 @@ Listing [[lst:configure-consult]] configures =consult=.
|
||||
(define-key search-map (kbd "m") #'consult-multi-occur)
|
||||
(define-key search-map (kbd "u") #'consult-focus-lines)
|
||||
;; Other bindings (current-global-map)
|
||||
(global-set-key (kbd "M-y") #'consult-yank-pop)
|
||||
;; Tweak functions
|
||||
(advice-add 'completing-read-multiple
|
||||
:override #'consult-completing-read-multiple))
|
||||
(global-set-key (kbd "M-y") #'consult-yank-pop))
|
||||
#+end_src
|
||||
|
||||
** [[https://company-mode.github.io/][Company: a modular complete anything framework for Emacs]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user