How to automatically decompress a custom compressed file when opened in emacs?
问题 I know Emacs automatically opens compressed files like .tar.gz . I'm trying to figure how to achieve this with my own compression script rather than the standard ones. Following this link, I added the following to my Emacs init file (if (fboundp 'auto-compression-mode) (auto-compression-mode 0) (require 'jka-compr)) (add-to-list 'jka-compr-compression-info-list ["\\.customcom\\'" "custom compressing" "customcom" (-c) "custom decompressing" "customcom" (-d) nil t]) (auto-compression-mode 1)