summaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2020-07-24 20:59:31 -0500
committerBobby Bingham <koorogi@koorogi.info>2021-02-06 10:40:54 -0600
commitf4eafa58b56249e2daefc798db051b2ca6202205 (patch)
tree2c2670cd93110f01761da76e128edabdf1025ebc /emacs/.emacs.d/init.el
parent0504f3e2a4e837823fe7e54ae9b32d431ff4df9d (diff)
emacs: switch file tree
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el22
1 files changed, 18 insertions, 4 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 9b33d78..33d3d1f 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -2,6 +2,9 @@
(defun load-if-exists (filename)
(when (file-exists-p filename) (load-file filename)))
+(defun bab/disable-line-numbers (&optional dummy)
+ (display-line-numbers-mode -1))
+
;; --- BUG WORKAROUNDS ---
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341
@@ -102,11 +105,22 @@
("C-<next>" . centaur-tabs-forward))
;; --- FILE TREE ---
-(use-package neotree
- :config
- ;;(setq neo-theme (if (display-graphic-p) 'icons 'arrow))
+(use-package vscode-icon
+ :ensure t
+ :commands (vscode-icon-for-file))
+
+(use-package dired-sidebar
:bind
- ("<f8>" . neotree-toggle))
+ ("<f8>" . dired-sidebar-toggle-sidebar)
+ :commands
+ (dired-sidebar-toggle-sidebar)
+ :hook
+ (dired-sidebar-mode . bab/disable-line-numbers)
+ :config
+ (push 'toggle-window-split dired-sidebar-toggle-hidden-commands)
+ (push 'rotate-windows dired-sidebar-toggle-hidden-commands)
+ (setq dired-sidebar-subtree-line-prefix "__")
+ (setq dired-sidebar-theme 'vscode))
;; --- AUTO-COMPLETE ---
(use-package company