about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-11-30 21:00:42 -0600
committerCase Duckworth2020-11-30 21:00:42 -0600
commit7405e43a375931c0e684a63e11ba46cbf02f7619 (patch)
treeaf49dc9840da3c3f15937cb02c5de5c168780678
parentRemove vertical scrollbars (diff)
downloademacs-7405e43a375931c0e684a63e11ba46cbf02f7619.tar.gz
emacs-7405e43a375931c0e684a63e11ba46cbf02f7619.zip
Add consult
-rw-r--r--config.org27
1 files changed, 27 insertions, 0 deletions
diff --git a/config.org b/config.org index da299c5..d1ee8bf 100644 --- a/config.org +++ b/config.org
@@ -429,6 +429,33 @@ See [[https://emacs.stackexchange.com/questions/12351/when-to-call-find-font-if-
429#+end_src 429#+end_src
430 430
431** CtrlF 431** CtrlF
432*** [[https://github.com/minad/cconsult][consult]]
433
434=consult= is the newest package I have with this setup, and it kind of brings the =selectrum= experience up to par with =ivy='s -- it provides functions that list, say, recently used files /alongside/ buffers, allow you to search lines and go to them, etc. It seems pretty nice so far.
435
436By the way, the [[https://www.reddit.com/r/emacs/comments/k3c0u7][Reddit announcement thread for consult]] has a great comment by the author detailing [[https://www.reddit.com/r/emacs/comments/k3c0u7/consult_counselswiper_alternative_for/ge460z3/][the differences between different completing-read implementations]] that actually is what convinced me to try =consult=.
437
438#+begin_src emacs-lisp
439 (use-package consult
440 :after (selectrum)
441 :straight (consult
442 :host github
443 :repo "minad/consult")
444 :bind (("C-x b" . consult-buffer)
445 ("C-x 4 b" . consult-buffer-other-window)
446 ("C-x 5 b" . consult-buffer-other-frame)
447 ("M-g o" . consult-outline)
448 ("M-g l" . consult-line)
449 ("M-y" . consult-yank-pop)
450 ("<help> a" . consult-apropos))
451 :init
452 (fset 'multi-occur #'consult-multi-occur)
453 (consult-annotate-mode)
454 :config
455 (setf (alist-get 'execute-extended-command consult-annotate-alist)
456 #'consult-annotate-command-full))
457#+end_src
458
432 459
433#+begin_src emacs-lisp 460#+begin_src emacs-lisp
434 (use-package ctrlf 461 (use-package ctrlf