Add dired-sidebar
This commit is contained in:
parent
e8b3f2f746
commit
88ac84b327
@ -4,4 +4,23 @@
|
||||
:config
|
||||
(evil-collection-dired-setup))
|
||||
|
||||
;; Add a toggleable dired sidebar
|
||||
(use-package dired-sidebar
|
||||
:config
|
||||
(defun winum-assign-0-to-dired-sidebar ()
|
||||
(when (equal major-mode 'dired-sidebar-mode) 0))
|
||||
(add-to-list 'winum-assign-functions #'winum-assign-0-to-dired-sidebar)
|
||||
(add-hook 'dired-sidebar-mode-hook
|
||||
(lambda ()
|
||||
(unless (file-remote-p default-directory)
|
||||
(auto-revert-mode))))
|
||||
(add-hook 'dired-sidebar-mode-hook #'hide-mode-line-mode)
|
||||
:general
|
||||
(leader-map "d" #'dired-sidebar-toggle-sidebar)
|
||||
:custom
|
||||
(dired-sidebar-theme 'nerd)
|
||||
(dired-sidebar-should-follow-file t)
|
||||
(dired-sidebar-pop-to-sidebar-on-toggle-open nil)
|
||||
(dired-sidebar-no-delete-other-windows t))
|
||||
|
||||
(provide 'init-dired)
|
||||
|
@ -13,4 +13,8 @@
|
||||
;; Load custom themes
|
||||
(add-to-list 'custom-theme-load-path (expand-file-name "config/themes" user-emacs-directory))
|
||||
|
||||
;; A small package to hide the mode line
|
||||
(use-package hide-mode-line
|
||||
:commands hide-mode-line-mode)
|
||||
|
||||
(provide 'init-ui)
|
||||
|
Loading…
Reference in New Issue
Block a user