diff options
author | Alan Pearce | 2024-05-21 18:40:41 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-21 18:40:41 +0200 |
commit | f704a8db2409787d97086d76dc7fb3430b80cd22 (patch) | |
tree | ebc4c7bdd978a4d6654adcdd2706d4e7beb28552 /user/emacs | |
parent | d26176849ff400ea3752d6b4da2437b8f6d6bb40 (diff) | |
download | nixfiles-f704a8db2409787d97086d76dc7fb3430b80cd22.tar.lz nixfiles-f704a8db2409787d97086d76dc7fb3430b80cd22.tar.zst nixfiles-f704a8db2409787d97086d76dc7fb3430b80cd22.zip |
emacs: try treemacs
Diffstat (limited to 'user/emacs')
-rw-r--r-- | user/emacs/init.el | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 7cdfa370..6652d57c 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -947,6 +947,32 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve (evil-ex-define-cmd "pb" #'project-switch-to-buffer) (evil-ex-define-cmd "psw[itch]" #'project-switch-project)))) +(use-package treemacs + :general (:keymaps 'treemacs-mode-map + [mouse-1] #'treemacs-single-click-expand-action) + :config (progn + (treemacs-project-follow-mode t) + (setq treemacs-is-never-other-window t + treemacs-select-when-already-in-treemacs 'move-back + treemacs-eldoc-display nil + treemacs-indentation '(8 px) + treemacs-show-hidden-files nil + treemacs-recenter-after-project-jump 'on-distance + treemacs-missing-project-action 'remove))) + +(use-package treemacs-evil + :after treemacs) + +(use-package treemacs-magit + :after treemacs) + +(use-package treemacs-nerd-icons + :after treemacs + :init (progn + (setq treemacs-nerd-icons-tab " ")) + :config (progn + (treemacs-load-theme "simple"))) + (use-package consult-ghq :defer 5 :general (:keymaps 'project-prefix-map @@ -1215,6 +1241,7 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve "p" '(:keymap project-prefix-map :package project) "v" #'split-window-right "o" #'other-window + "s" #'treemacs-select-window "u" #'universal-argument ";" #'execute-extended-command "bb" #'consult-buffer |