From f4eafa58b56249e2daefc798db051b2ca6202205 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Fri, 24 Jul 2020 20:59:31 -0500 Subject: emacs: switch file tree --- emacs/.emacs.d/init.el | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'emacs/.emacs.d/init.el') 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-" . 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 - ("" . neotree-toggle)) + ("" . 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 -- cgit v1.2.3