Emacs ivy-mode


Emacs ivy-mode

  • ivy, a generic completion mechanism for Emacs
  • Counsel, a collection of Ivy-enhanced versions of common Emacs commands
  • Swiper, an Ivy-enhanced alternative to isearch

Youtube 影片

ivy-mode config

(use-package ivy
  :ensure t
  :diminish (ivy-mode . "")
  :bind (("C-c C-r" . ivy-resume))
  (ivy-mode 1)
  (setq ivy-use-virtual-buffers t)
  (setq enable-recursive-minibuffers t)
  (setq ivy-height 10)
  (setq ivy-initial-inputs-alist nil)
  (setq ivy-count-format "%d/%d ")
  (setq ivy-re-builders-alist
    `((t . ivy--regex-ignore-order))))

counsel mode

(use-package counsel
  :ensure t
  :bind (("M-x" . counsel-M-x)
         ("C-x C-f" . counsel-find-file)))


(use-package swiper
  :ensure t
  :bind (("C-s" . swiper)))