2024-07-05 16:38:12 +00:00
|
|
|
|
2024-07-10 08:34:45 +00:00
|
|
|
;;
|
|
|
|
;; Tree browser packages
|
|
|
|
;;
|
|
|
|
|
2024-07-12 23:32:01 +00:00
|
|
|
(defcustom whomp-dirbrowser nil
|
2024-07-10 08:34:45 +00:00
|
|
|
"Whether or not to enable treemacs."
|
|
|
|
:type '(choice (const :tag "None" nil)
|
|
|
|
(const :tag "neotree" neotree)
|
|
|
|
(const :tag "treemacs" treemacs))
|
2024-07-12 23:32:01 +00:00
|
|
|
:group 'whomp-config)
|
2024-07-10 08:34:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
;; File Tree Browser
|
|
|
|
;;
|
|
|
|
|
2024-07-12 23:32:01 +00:00
|
|
|
(when (eq 'neotree whomp-dirbrowser)
|
2024-07-06 15:43:51 +00:00
|
|
|
(use-package neotree
|
|
|
|
:straight t
|
|
|
|
:config
|
|
|
|
(global-set-key [f8] 'neotree-toggle)
|
2024-07-12 23:32:01 +00:00
|
|
|
(whomp/add-key-binding "C-n" 'neotree-toggle "Toggle Neotree"))
|
2024-07-10 09:18:27 +00:00
|
|
|
(message "neotree loaded"))
|
2024-07-05 16:38:12 +00:00
|
|
|
|
2024-07-06 15:43:51 +00:00
|
|
|
|
2024-07-12 23:32:01 +00:00
|
|
|
(when (eq 'treemacs whomp-dirbrowser)
|
2024-07-06 15:43:51 +00:00
|
|
|
(use-package treemacs
|
|
|
|
:straight t
|
|
|
|
:ensure t
|
|
|
|
:demand t
|
|
|
|
:config
|
|
|
|
(global-set-key [f8] 'treemacs)
|
|
|
|
(progn
|
|
|
|
(setq treemacs-follow-after-init t
|
|
|
|
treemacs-width 35
|
|
|
|
treemacs-indentation 2
|
|
|
|
treemacs-git-integration t
|
|
|
|
treemacs-collapse-dirs 3
|
|
|
|
treemacs-silent-refresh t
|
|
|
|
treemacs-change-root-without-asking t
|
|
|
|
treemacs-sorting 'alphabetic-desc
|
|
|
|
treemacs-show-hidden-files t
|
|
|
|
treemacs-never-persist nil
|
|
|
|
treemacs-is-never-other-window t
|
|
|
|
treemacs-goto-tag-strategy 'refetch-index)))
|
2024-07-12 23:32:01 +00:00
|
|
|
(whomp/add-key-binding "C-t" 'treemacs "Toggle Treemacs")
|
|
|
|
(when (memq 'kaolinthemes whomp-ui-themes)
|
2024-07-10 09:18:27 +00:00
|
|
|
(kaolin-treemacs-theme))
|
|
|
|
(message "treemacs loaded"))
|
2024-07-05 16:38:12 +00:00
|
|
|
|
2024-07-12 23:32:01 +00:00
|
|
|
(message "W.H.O.M.P. Directory browser configuration loaded.")
|
|
|
|
(provide 'whomp-file-browser)
|