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/custom.el | 2 +- emacs/.emacs.d/init.el | 22 ++++++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/custom.el b/emacs/.emacs.d/custom.el index 7a12df9..6275483 100644 --- a/emacs/.emacs.d/custom.el +++ b/emacs/.emacs.d/custom.el @@ -8,7 +8,7 @@ ("13fa7a304bd53aa4c0beec4c25c4f811de499bce9deb326798265ed0015b3b78" "a41b81af6336bd822137d4341f7e16495a49b06c180d6a6417bf9fd1001b6d2b" "63df625509cec7b2b7deba1d48ef07ffbee99c735a95d130ad9d1fc3df8b9a34" "55c2069e99ea18e4751bd5331b245a2752a808e91e09ccec16eb25dadbe06354" "5f1bd7f67dc1598977e69c6a0aed3c926f49581fdf395a6246f9bc1df86cb030" "6731049cee8f7cbd542d7b3e1c551f3fab716a92119bd7c77f0bd1ef20849fb8" "28caf31770f88ffaac6363acfda5627019cac57ea252ceb2d41d98df6d87e240" "947190b4f17f78c39b0ab1ea95b1e6097cc9202d55c73a702395fc817f899393" "35b0b0e531731e270708ddb342dc2e576a31fb298dcbc56a206596a43afac54f" "274fa62b00d732d093fc3f120aca1b31a6bb484492f31081c1814a858e25c72e" default))) '(package-selected-packages (quote - (flycheck prettier-js calfw-org calfw org-ql org-super-agenda org-pomodoro org doom-themes counsel-projectile ivy slime neotree magit all-the-icons centaur-tabs company-quickhelp lsp-ui yasnippet typescript-mode company-lsp company-posframe company-c-headers telephone-line dracula-theme evil use-package)))) + (vscode-icon dired-sidebar flycheck prettier-js calfw-org calfw org-ql org-super-agenda org-pomodoro org doom-themes counsel-projectile ivy slime magit all-the-icons centaur-tabs company-quickhelp lsp-ui yasnippet typescript-mode company-lsp company-posframe company-c-headers telephone-line dracula-theme evil use-package)))) (custom-set-faces ;; custom-set-faces was added by Custom. 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