Emacs: Make ivy work properly again.

This commit is contained in:
tastytea 2020-05-26 07:06:22 +02:00
parent 4bb50bf5cd
commit 710403de07

View File

@ -1,6 +1,6 @@
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*- ;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-05-25T13:37:30+0200> ;; Time-stamp: <2020-05-26T06:39:54+0200>
;;; Commentary: ;;; Commentary:
;; * treemacs ;; * treemacs
@ -58,23 +58,27 @@
;; Extensions for ivy ;; Extensions for ivy
(use-package counsel (use-package counsel
:demand t
:after (ivy) :after (ivy)
:bind (("C-x C-f" . counsel-find-file) :bind (("C-x C-f" . counsel-find-file)
("M-x" . counsel-M-x))) ("M-x" . counsel-M-x)))
;; Use icons in ivy. ;; Use icons in ivy.
(use-package all-the-icons-ivy (use-package all-the-icons-ivy
:demand t
:after (all-the-icons counsel) :after (all-the-icons counsel)
:config (all-the-icons-ivy-setup)) :config (all-the-icons-ivy-setup))
;; More information in ivy mini-buffers. ;; More information in ivy mini-buffers.
(use-package ivy-rich (use-package ivy-rich
:demand t
;; all-the-icons-ivy would override the ivy-rich switch-buffer improvements. ;; all-the-icons-ivy would override the ivy-rich switch-buffer improvements.
:after (all-the-icons-ivy counsel) :after (all-the-icons-ivy counsel)
:config (ivy-rich-mode 1)) :config (ivy-rich-mode 1))
;; Use icons in ivy-rich. ;; Use icons in ivy-rich.
(use-package all-the-icons-ivy-rich (use-package all-the-icons-ivy-rich
:demand t
:after (all-the-icons ivy-rich) :after (all-the-icons ivy-rich)
:config (all-the-icons-ivy-rich-mode 1)) :config (all-the-icons-ivy-rich-mode 1))
@ -89,6 +93,7 @@
:bind ("C-c e" . ivy-emoji)) :bind ("C-c e" . ivy-emoji))
(use-package counsel-projectile (use-package counsel-projectile
:demand t
:after (projectile) :after (projectile)
:custom ((counsel-projectile-mode t) :custom ((counsel-projectile-mode t)
(projectile-switch-project-action 'my/switch-project)) (projectile-switch-project-action 'my/switch-project))