tech log on gentoo, linux, and random stuff

Posts Tagged ‘xournal

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 , , ,