Add treemacs with config + nerd-icon support

This commit is contained in:
Evie Litherland-Smith 2024-06-04 17:23:56 +01:00
parent f7f909d615
commit 86b8bfcbd0
2 changed files with 14 additions and 1 deletions

13
init.el
View file

@ -268,6 +268,12 @@
:requires (corfu nerd-icons)
:config (add-to-list 'corfu-margin-formatters #'nerd-icons-corfu-formatter))
(use-package treemacs-nerd-icons
:diminish
:requires (treemacs nerd-icons)
:config
(treemacs-load-theme "nerd-icons"))
(use-package ligature
:functions (ligature-set-ligatures
global-ligature-mode)
@ -988,6 +994,13 @@ Calls `project-remember-projects-under' for ~/Projects/"
("\\`\\(?:sourcehut:\\|sh:\\)\\([^:]+\\)\\'" "git.sr.ht" "sourcehut.user")
("\\`\\(?:gitea:\\|gt:\\)\\([^:]+\\)\\'" "git.xenia.me.uk" "gitea.user"))))
(use-package treemacs
:functions treemacs
:bind (("M-g t" . treemacs-select-window))
:hook (treemacs-mode . (lambda ()
(visual-line-mode -1)
(toggle-truncate-lines -1))))
(use-package aggressive-indent
:hook (elisp-mode
lisp-mode

View file

@ -29,7 +29,7 @@
;; org-mode HTML export
htmlize
;; Projects
ibuffer-project magit forge
ibuffer-project magit forge treemacs
;; Writing
markdown-mode pandoc-mode auctex auctex-latexmk latex-preview-pane
;; Email