Variable: dirvish-find-entry-hook
dirvish-find-entry-hook is a customizable variable defined in
dirvish.el.
Value
nil
Documentation
Functions to be called before opening a directory or file.
Each function is called with the file's FILENAME and FIND-FN until one
returns a non-nil value. When a Dired buffer is created for the first
time, FIND-FN is dired, and the function is called with that Dired
buffer as current-buffer; Otherwise, it is one of find-file,
find-alternate-file, or find-file-other-window. A non-nil return
value terminates dirvish--find-entry, allowing interception of file
opening and customized handling of specific file types.
Source Code
;; Defined in /nix/store/1gijwny2yx4fggrsb9l110h1ybs1gdk5-emacs-packages-deps/share/emacs/site-lisp/elpa/dirvish-20260725.1520/dirvish.el
(defcustom dirvish-find-entry-hook nil
"Functions to be called before opening a directory or file.
Each function is called with the file's FILENAME and FIND-FN until one
returns a non-nil value. When a Dired buffer is created for the first
time, FIND-FN is `dired', and the function is called with that Dired
buffer as `current-buffer'; Otherwise, it is one of `find-file',
`find-alternate-file', or `find-file-other-window'. A non-nil return
value terminates `dirvish--find-entry', allowing interception of file
opening and customized handling of specific file types."
:group 'dirvish :type 'hook)