From 972493658b13265a8d2dd59aa55cad59f05e5d77 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Sat, 24 Oct 2015 07:38:10 +0200 Subject: [PATCH] Add support for tar.bz2 and tar.xz archives * lisp/dired-aux.el (dired-compress-files-alist): Add support for tar.bz2 and tar.xz archives. --- lisp/dired-aux.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 46d40d2b41e..9f115140527 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -921,6 +921,8 @@ ARGS are command switches passed to PROGRAM.") (defvar dired-compress-files-alist '(("\\.tar\\.gz\\'" . "tar -c %i | gzip -c9 > %o") + ("\\.tar\\.bz2\\'" . "tar -c %i | bzip2 -c9 > %o") + ("\\.tar\\.xz\\'" . "tar -c %i | xz -c9 > %o") ("\\.zip\\'" . "zip %o -r --filesync %i")) "Control the compression shell command for `dired-do-compress-to'. -- 2.39.5