summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-25 20:08:04 -0500
committerCraig Jennings <c@cjennings.net>2025-10-25 20:08:04 -0500
commitb4d202f3256c6cfdd8a407169521cc7eb219f423 (patch)
tree1736128b62da8e107afcb4f7e973b2a3173e9fa1
parentd37ac96c9e2f2dc7214a353acd947f73008d3a15 (diff)
refactor:dirvish: remove unused dired sidebar code
Remove unused functions and configurations related to dired-sidebar and nerd-icons-dired. This cleans up the code and reduces unnecessary dependencies within the dashboard-config.el and dirvish-config.el modules.
-rw-r--r--modules/dashboard-config.el2
-rw-r--r--modules/dirvish-config.el24
2 files changed, 0 insertions, 26 deletions
diff --git a/modules/dashboard-config.el b/modules/dashboard-config.el
index 0970feaa..44e87d5a 100644
--- a/modules/dashboard-config.el
+++ b/modules/dashboard-config.el
@@ -53,8 +53,6 @@
(defun cj/dashboard-only ()
"Switch to *dashboard* buffer and kill all other buffers and windows."
(interactive)
- (when (fboundp 'dired-sidebar-hide-sidebar)
- (dired-sidebar-hide-sidebar))
(if (get-buffer "*dashboard*")
(progn
(switch-to-buffer "*dashboard*")
diff --git a/modules/dirvish-config.el b/modules/dirvish-config.el
index 26bf02bc..5ea7bc66 100644
--- a/modules/dirvish-config.el
+++ b/modules/dirvish-config.el
@@ -302,9 +302,6 @@ regardless of what file or subdirectory the point is on."
(use-package nerd-icons
:defer .5)
-(use-package nerd-icons-dired
- :commands (nerd-icons-dired-mode))
-
;;; ---------------------------- Dired Hide Dotfiles ----------------------------
(use-package dired-hide-dotfiles
@@ -317,27 +314,6 @@ regardless of what file or subdirectory the point is on."
(:map dired-mode-map
("." . dired-hide-dotfiles-mode)))
-;;; ------------------------------- Dired Sidebar -------------------------------
-
-(use-package dired-sidebar
- :after (dired projectile)
- :defer t
- :commands (dired-sidebar-toggle-sidebar)
- :init
- (add-hook 'dired-sidebar-mode-hook
- (lambda ()
- (unless (file-remote-p default-directory)
- (auto-revert-mode))))
- :config
- (push 'toggle-window-split dired-sidebar-toggle-hidden-commands) ;; disallow splitting dired window when it's showing
- (push 'rotate-windows dired-sidebar-toggle-hidden-commands) ;; disallow rotating windows when sidebar is showing
- (setq dired-sidebar-subtree-line-prefix " ") ;; two spaces give simple and aesthetic indentation
- (setq dired-sidebar-no-delete-other-windows t) ;; don't close when calling 'delete other windows'
- (setq dired-sidebar-theme 'nerd-icons) ;; gimme fancy icons, please
- (setq dired-sidebar-use-custom-font 'nil) ;; keep the same font as the rest of Emacs
- (setq dired-sidebar-delay-auto-revert-updates 'nil) ;; don't delay auto-reverting
- (setq dired-sidebar-pop-to-sidebar-on-toggle-open 'nil)) ;; don't jump to sidebar when it's toggled on
-
;; --------------------------------- Copy Path ---------------------------------
(defun cj/dired-copy-path-as-kill (&optional as-org-link force-absolute)