Function: dirvish--setup-dired
dirvish--setup-dired is a natively compiled function defined in
dirvish.el.
Signature
(dirvish--setup-dired)
Documentation
Initialize Dired buffers.
Source Code
;; Defined in /nix/store/1gijwny2yx4fggrsb9l110h1ybs1gdk5-emacs-packages-deps/share/emacs/site-lisp/elpa/dirvish-20260725.1520/dirvish.el
(defun dirvish--setup-dired ()
"Initialize Dired buffers."
(use-local-map dirvish-mode-map)
(dirvish--hide-dired-header)
(dirvish--maybe-toggle-cursor 'box) ; restore from `wdired'
(setq-local dirvish--dir-data (or dirvish--dir-data (dirvish--ht))
revert-buffer-function (or (dirvish-prop :revert) #'dirvish-revert)
truncate-lines t dired-hide-details-hide-symlink-targets nil)
(add-hook 'pre-redisplay-functions #'dirvish-pre-redisplay-h nil t)
(add-hook 'window-buffer-change-functions #'dirvish-winbuf-change-h nil t)
(add-hook 'post-command-hook #'dirvish-post-command-h nil t)
(add-hook 'kill-buffer-hook #'dirvish-kill-buffer-h nil t))