summaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
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