Variable: dired-guess-shell-alist-optional

dired-guess-shell-alist-optional is a variable defined in dired-aux.el.gz.

Value

(("\\.dvi\\'" "xdvi" "dvips") ("\\.au\\'" "play")
 ("\\.mpe?g\\'\\|\\.avi\\'" "xine -p") ("\\.ogg\\'" "ogg123")
 ("\\.mp3\\'" "mpg123") ("\\.wav\\'" "play") ("\\.hqx\\'" "mcvert")
 ("\\.xbm\\'" "bitmap") ("\\.gp\\'" "gnuplot")
 ("\\.p[bgpn]m\\'" "xloadimage") ("\\.gif\\'" "xloadimage")
 ("\\.tif\\'" "xloadimage") ("\\.png\\'" "display")
 ("\\.jpe?g\\'" "xloadimage") ("\\.fig\\'" "xfig")
 ("\\.out\\'" "xgraph") ("\\.pdf\\'" "xpdf")
 ("\\.doc\\'" "antiword" "strings"))

Documentation

Optional alist used for shell command guessing.

Unlike dired-guess-shell-alist-default that contains mostly the standard commands that handle the files with corresponding extensions such as the tar command handling the files with the .tar extension, this list contains the commands such as media players and viewers that don't exist on many systems where other alternatives are available.

See also dired-guess-shell-alist-user.

View in manual

Probably introduced at or before Emacs version 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defvar dired-guess-shell-alist-optional
  (list
   '("\\.dvi\\'" "xdvi" "dvips")	; preview and printing
   '("\\.au\\'" "play")			; play Sun audiofiles
   '("\\.mpe?g\\'\\|\\.avi\\'" "xine -p")
   '("\\.ogg\\'" "ogg123")
   '("\\.mp3\\'" "mpg123")
   '("\\.wav\\'" "play")
   '("\\.hqx\\'" "mcvert")
   '("\\.xbm\\'" "bitmap")		; view X11 bitmaps
   '("\\.gp\\'" "gnuplot")
   '("\\.p[bgpn]m\\'" "xloadimage")
   '("\\.gif\\'" "xloadimage")		; view gif pictures
   '("\\.tif\\'" "xloadimage")
   '("\\.png\\'" "display")		; xloadimage 4.1 doesn't grok PNG
   '("\\.jpe?g\\'" "xloadimage")
   '("\\.fig\\'" "xfig")		; edit fig pictures
   '("\\.out\\'" "xgraph")		; for plotting purposes.
   '("\\.pdf\\'" "xpdf")
   '("\\.doc\\'" "antiword" "strings"))
  "Optional alist used for shell command guessing.
Unlike `dired-guess-shell-alist-default' that contains mostly the
standard commands that handle the files with corresponding extensions
such as the `tar' command handling the files with the `.tar' extension,
this list contains the commands such as media players and viewers
that don't exist on many systems where other alternatives are available.

See also `dired-guess-shell-alist-user'.")