There is another user option `compress-file-default-suffix` that allow user custom default suffix for compressing file in dired-mode. These two patch allow user custom suffix for compressing folder and file in dired-mode by pressing "Z". Both two patches are attached. On Tuesday, March 23, 2021, 11:16:13 PM GMT+8, Lin Sun wrote: #yiv1694401698 #yiv1694401698 -- filtered {}#yiv1694401698 filtered {}#yiv1694401698 filtered {}#yiv1694401698 filtered {}#yiv1694401698 p.yiv1694401698MsoNormal, #yiv1694401698 li.yiv1694401698MsoNormal, #yiv1694401698 div.yiv1694401698MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:sans-serif;}#yiv1694401698 .yiv1694401698MsoChpDefault {}#yiv1694401698 filtered {}#yiv1694401698 div.yiv1694401698WordSection1 {}#yiv1694401698 Hi Eli,   Sorry for my misunderstanding for your preview comments.   > but wouldn't it be better to use symbols instead of strings? The new option `dired-compress-files-default-suffix` can be “.tar.gz” or “.tar.xz”… and it should work with variable ` dired-compress-file-suffixes` while this variable maybe extended by user. So the type:string is simple for implementation.   And yes, the document need update, changes are available in the attachment.   Please help to review the new patch. Thanks.