(Emacs/config)~Emitted Ivy headings to higher in the hierarchy

This commit is contained in:
2024-07-03 04:30:27 +01:00
parent 2006a8ae39
commit 8aa544e25b

View File

@@ -690,18 +690,10 @@ in providing good user experience. By default Emacs provides
'completions-list' which produces a buffer of options which can be 'completions-list' which produces a buffer of options which can be
searched and selected. We can take this further though! searched and selected. We can take this further though!
Ido and IComplete are packages distributed with Emacs to provide
greater completion interfaces. They utilise the minibuffer to create
a more interactive experience, allowing incremental searches and
option selection.
Ivy and Helm provide more modern interfaces, though Helm is quite Ivy and Helm provide more modern interfaces, though Helm is quite
heavy. Ivy, on the other hand, provides an interface similar to Ido heavy. Ivy, on the other hand, provides an interface similar to Ido
with less clutter and better customisation options. with less clutter and better customisation options.
*** Ivy *** Ivy
Ivy is a completion framework for Emacs, and my preferred one. It has
a great set of features with little to no pain with setting up.
**** Ivy Core
Setup for ivy, in preparation for counsel. Turn on ivy-mode just Setup for ivy, in preparation for counsel. Turn on ivy-mode just
after init. after init.
@@ -745,15 +737,15 @@ selection list).
ivy-on-del-error-function #'ignore ivy-on-del-error-function #'ignore
ivy-use-selectable-prompt t) ivy-use-selectable-prompt t)
:config :config
(ivy-mode 1) (ivy-mode 1))
(require 'counsel nil t))
#+end_src #+end_src
**** Counsel *** Counsel
Setup for counsel. Load after ivy and helpful. Setup for counsel. Load as late as possible, after ivy force requires
it.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package counsel (use-package counsel
:straight t :straight t
:defer t :after ivy
:general :general
(search-leader (search-leader
"s" #'counsel-grep-or-swiper "s" #'counsel-grep-or-swiper