Skip to content

Commit

Permalink
tweak(emacs): use nerd-icons for everything
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed Dec 13, 2023
1 parent ac5ce54 commit 1654324
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -165,20 +165,19 @@
(read-extended-command-predicate #'command-completion-default-include-p)
(vertico-cycle t))

(use-package all-the-icons)
;; This MUST come before the `marginalia' definition.
(use-package all-the-icons-completion
:after all-the-icons
:init
(add-hook 'marginalia-mode-hook #'all-the-icons-completion-marginalia-setup))

(use-package marginalia
:init
;; Marginalia must be actived in the :init section
(marginalia-mode)
:general
(general-def minibuffer-local-map "M-A" #'marginalia-cycle))

(use-package nerd-icons-completion
:after marginalia
:config
(nerd-icons-completion-mode)
(add-hook 'marginalia-mode-hook #'nerd-icons-completion-marginalia-setup))

(use-package orderless
:custom
(completion-styles '(orderless basic))
Expand Down Expand Up @@ -299,7 +298,7 @@
(pdf-tools-install))

(use-package dirvish
:after all-the-icons
:after nerd-icons
:init
(dirvish-override-dired-mode)
:custom
Expand Down Expand Up @@ -335,7 +334,7 @@
(mouse-drag-and-drop-region-cross-program t)

(dirvish-attributes
'(all-the-icons file-time file-size subtree-state vc-state git-msg))
'(nerd-icons file-time file-size subtree-state vc-state git-msg))
:general
(general-def
:states 'normal
Expand Down

0 comments on commit 1654324

Please sign in to comment.