From 450c6c769107112b3533bfa3edd118a2c2480658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 8 May 2019 12:28:22 -0500 Subject: replace helm for ivy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After experiencing these three packages, I liked helm, but to be honest, I wasn't using all of its features and I was looking for a lighter and faster solution. That's why, it's already a few years since I chose ivy and which corresponds entirely to my workflow. Please note that my choice may vary according to your criteria 😊 --- modules/init-ivy.el | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 modules/init-ivy.el (limited to 'modules/init-ivy.el') diff --git a/modules/init-ivy.el b/modules/init-ivy.el new file mode 100644 index 0000000..5879b2d --- /dev/null +++ b/modules/init-ivy.el @@ -0,0 +1,42 @@ +;;; init-ivy.el --- .Emacs Configuration -*- lexical-binding: t -*- +;;; Commentary: +;; + +;;; Code: +(use-package counsel + :after ivy + :config (counsel-mode)) + +(use-package ivy + :defer 0.1 + :diminish + :bind (("C-c C-r" . ivy-resume) + ("C-x B" . ivy-switch-buffer-other-window)) + :commands ivy-mode + :custom + (ivy-count-format "(%d/%d) ") + (ivy-use-virtual-buffers t) + :config (ivy-mode)) + +(use-package ivy-rich + :after ivy + :custom + (ivy-virtual-abbreviate 'full + ivy-rich-switch-buffer-align-virtual-buffer t + ivy-rich-path-style 'abbrev) + :commands ivy-set-display-transformer + :config + (ivy-set-display-transformer 'ivy-switch-buffer + 'ivy-rich-switch-buffer-transformer)) + +(use-package swiper + :after ivy + :bind (("C-s" . swiper) + ("C-r" . swiper))) + +(provide 'init-ivy) + +;; Local Variables: +;; byte-compile-warnings: (not free-vars) +;; End: +;;; init-ivy.el ends here -- cgit v1.2.3