mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
tools/dired: faster dired in remote buffers
This commit is contained in:
@ -43,6 +43,13 @@
|
||||
:after dired
|
||||
:config
|
||||
(setq dired-k-style 'git)
|
||||
|
||||
(defun +dired*dired-k-highlight (orig-fn &rest args)
|
||||
"Butt out if the requested directory is remote (i.e. through tramp)."
|
||||
(unless (file-remote-p default-directory)
|
||||
(apply orig-fn args)))
|
||||
(advice-add 'dired-k--highlight :around '+dired*dired-k-highlight)
|
||||
|
||||
(add-hook 'dired-initial-position-hook 'dired-k)
|
||||
(add-hook 'dired-after-readin-hook #'dired-k-no-revert))
|
||||
|
||||
|
Reference in New Issue
Block a user