mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
tools/dired: faster dired in remote buffers
This commit is contained in:
@ -43,6 +43,13 @@
|
|||||||
:after dired
|
:after dired
|
||||||
:config
|
:config
|
||||||
(setq dired-k-style 'git)
|
(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-initial-position-hook 'dired-k)
|
||||||
(add-hook 'dired-after-readin-hook #'dired-k-no-revert))
|
(add-hook 'dired-after-readin-hook #'dired-k-no-revert))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user