help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to generate a zip file (not a directory) within dired


From: Uwe Brauer
Subject: Re: how to generate a zip file (not a directory) within dired
Date: Sun, 20 Feb 2022 14:16:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> * Uwe Brauer <oub@mat.ucm.es> [2022-02-20 15:01]:

> Solution is Z.

> 1) Adapt `dired-compress-file-alist' for ZIP files;
>    example:

>    (setf (alist-get "\\.zip\\'" dired-compress-file-alist) "zip -9 %o %i")

>    which may be placed in your init file.

> 2) Adapt `dired-compress-file-default-suffix' to be .ZIP

>    or alternatively make a function that will adapt it on the fly.

> Then press Z on the file. I don't know if it will work on multiple files.

Thanks! Works like charm

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]