Variable: dired-compress-file-alist
dired-compress-file-alist is a variable defined in dired-aux.el.gz.
Value
(("\\.gz\\'" . "gzip -9f %i") ("\\.bz2\\'" . "bzip2 -9f %i")
("\\.xz\\'" . "xz -9f %i")
("\\.zst\\'" . "zstd -qf -19 --rm -o %o %i"))
Documentation
Controls the compression shell command for dired-do-compress-to.
Each element is (REGEXP . CMD), where REGEXP is the name of the archive to which you want to compress, and CMD is the corresponding command.
Within CMD, %i denotes the input file(s), and %o denotes the output file. %i path(s) are relative, while %o is absolute.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defvar dired-compress-file-alist
'(("\\.gz\\'" . "gzip -9f %i")
("\\.bz2\\'" . "bzip2 -9f %i")
("\\.xz\\'" . "xz -9f %i")
("\\.zst\\'" . "zstd -qf -19 --rm -o %o %i"))
"Controls the compression shell command for `dired-do-compress-to'.
Each element is (REGEXP . CMD), where REGEXP is the name of the
archive to which you want to compress, and CMD is the
corresponding command.
Within CMD, %i denotes the input file(s), and %o denotes the
output file. %i path(s) are relative, while %o is absolute.")