diff options
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r-- | emacs/.emacs.d/custom.el | 2 | ||||
-rw-r--r-- | emacs/.emacs.d/init.el | 16 |
2 files changed, 15 insertions, 3 deletions
diff --git a/emacs/.emacs.d/custom.el b/emacs/.emacs.d/custom.el index 6275483..96897f2 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 - (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)))) + (ibuffer-sidebar 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 4238959..1e8cd33 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -5,6 +5,12 @@ (defun bab/disable-line-numbers (&optional dummy) (display-line-numbers-mode -1)) +(defun bab/sidebar-toggle () + "Toggle both `dired-sidebar' and `ibuffer-sidebar'." + (interactive) + (dired-sidebar-toggle-sidebar) + (ibuffer-sidebar-toggle-sidebar)) + ;; --- BUG WORKAROUNDS --- ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341 @@ -106,14 +112,20 @@ ("C-<prior>" . centaur-tabs-backward) ("C-<next>" . centaur-tabs-forward)) -;; --- FILE TREE --- +;; --- FILE TREE / BUFFER LIST --- (use-package vscode-icon :ensure t :commands (vscode-icon-for-file)) +(use-package ibuffer-sidebar + :commands + (ibuffer-sidebar-toggle-sidebar) + :hook + (ibuffer-sidebar-mode . bab/disable-line-numbers)) + (use-package dired-sidebar :bind - ("<f8>" . dired-sidebar-toggle-sidebar) + ("<f8>" . bab/sidebar-toggle) :commands (dired-sidebar-toggle-sidebar) :hook |