commit f874cb6d1c0b1406d26fb5df29d17d6cc4467035 parent f418ed47a49502bb65a1b3e3d37570bf5f29236d Author: Vincent Demeester <vincent@sbr.pm> Date: Fri, 20 Oct 2023 17:41:58 +0200 tools/emacs: add dired-sidebar… … it's quick and doesn't get in the way. But it is actually nice because I can quickly nagivate to my repositories. Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-navigating.el | | | 17 | +++++++++++++++++ |
M | users/vincent/dev/emacs.nix | | | 1 | + |
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/tools/emacs/config/config-navigating.el b/tools/emacs/config/config-navigating.el @@ -101,5 +101,22 @@ ("i" . Man-goto-section) ("g" . Man-update-manpage))) +(use-package dired-sidebar + :bind (("C-x C-n" . dired-sidebar-toggle-sidebar)) + :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) + (push 'rotate-windows dired-sidebar-toggle-hidden-commands) + + ;; (setq dired-sidebar-subtree-line-prefix "__") + ;;(setq dired-sidebar-use-custom-font t) + (setq dired-sidebar-theme 'arrow) + (setq dired-sidebar-use-term-integration t)) + (provide 'config-navigating) ;;; config-navigating.el ends here diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix @@ -42,6 +42,7 @@ let dired-narrow dired-rsync dired-subtree + dired-sidebar diredfl dockerfile-mode easy-kill