Update Ivy setup

This commit is contained in:
larstvei 2021-02-20 15:22:02 +01:00
parent ad64fc3fb6
commit bfd9f4f88e

View File

@ -262,7 +262,7 @@
echo-keystrokes 0.1 ; Show keystrokes asap echo-keystrokes 0.1 ; Show keystrokes asap
inhibit-startup-screen t ; No splash screen please inhibit-startup-screen t ; No splash screen please
initial-scratch-message nil ; Clean scratch buffer initial-scratch-message nil ; Clean scratch buffer
recentf-max-saved-items 100 ; Show more recent files recentf-max-saved-items 10000 ; Show more recent files
ring-bell-function 'ignore ; Quiet ring-bell-function 'ignore ; Quiet
scroll-margin 1 ; Space between cursor and top/bottom scroll-margin 1 ; Space between cursor and top/bottom
sentence-end-double-space nil ; No double space sentence-end-double-space nil ; No double space
@ -470,14 +470,19 @@
** Ivy ** Ivy
Let's try [[http://oremacs.com/swiper/][Ivy]] in favor of helm. [[http://oremacs.com/swiper/][Ivy]] is a completion system, giving you completions and fuzzy search whenever
you interact with the minibuffer. I transitioned to Ivy from [[https://emacs-helm.github.io/helm/][Helm]], mainly
due to it being aesthetically noisy, and that I didn't fully take advantage
of all its features (which are numerous). Here are some customization's that
made the transition a bit easier.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq ivy-wrap t (setq ivy-wrap t ; Easier access to the last candidate
ivy-height 25 ivy-height 25 ; Give me more candidates to look at
ivy-use-virtual-buffers t ivy-use-virtual-buffers t ; C-x b displays recents and bookmarks
ivy-count-format "(%d/%d) " ivy-count-format "(%d/%d) " ; Display both the index and the count
ivy-on-del-error-function 'ignore) ivy-on-del-error-function 'ignore ; Lets me hold in backspace
ivy-virtual-abbreviate 'abbreviate) ; Disambiguate same file in different dirs
(ivy-mode 1) (ivy-mode 1)
#+end_src #+end_src