tech log on gentoo, linux, and random stuff

automatically (un)compress files with arbitrary suffix in emacs

leave a comment »

Xournal, the note-taking app I’m using on my tablet, has the nice feature of gzipping its xml-format files. The following snippet in ~/.emacs will allow emacs to automatically compress/uncompress it during writing/reading.

(add-to-list 'jka-compr-compression-info-list 
   "compressing" "gzip" ("-c" "-q") 
   "uncompressing" "gzip" ("-c" "-q" "-d") 
   t nil 

Written by zsh

April 20, 2009 at 4:17 pm

Posted in /usr/bin, emacs

Tagged with , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: