Variable: shell-command-guess-functions
shell-command-guess-functions is a customizable variable defined in
dired-aux.el.gz.
Value
(shell-command-guess-dired-optional
shell-command-guess-mailcap
shell-command-guess-xdg
shell-command-guess-dired-default
shell-command-guess-dired-user)
Documentation
List of functions that guess shell commands for files.
Each function receives a list of commands and a list of file names and should return the same list of commands with changes such as new commands added to the beginning of the list. In this case the commands from the last entry will be at the top of the resulted list.
This variable was added, or its default value changed, in Emacs 30.1.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defcustom shell-command-guess-functions
'(shell-command-guess-dired-optional
shell-command-guess-mailcap
shell-command-guess-xdg
shell-command-guess-dired-default
shell-command-guess-dired-user)
"List of functions that guess shell commands for files.
Each function receives a list of commands and a list of file names
and should return the same list of commands with changes
such as new commands added to the beginning of the list.
In this case the commands from the last entry
will be at the top of the resulted list."
:type '(repeat
(choice (function-item shell-command-guess-dired-user)
(function-item shell-command-guess-dired-default)
(function-item shell-command-guess-dired-optional)
(function-item shell-command-guess-mailcap)
(function-item shell-command-guess-xdg)
(function-item shell-command-guess-open)
(function :tag "Custom function")))
:group 'dired
:version "30.1")