Friday, June 29, 2007

Browsing gzipped tarballs in Emacs

Somehow the presence of a hundred billion .tar.gz files on the Internet prevents Google from giving me this very simple tip. Just opening a .tar file in Emacs will let you browse it as if it were a directory. If the file is gzipped, you need to enable auto-compression-mode: either do M-x auto-compression-mode or (setq auto-compression-mode t) (e.g., in your .emacs file).

No comments: