z·eeki·sh

tech log on gentoo, linux, and random stuff

Posts Tagged ‘tablet

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 
  ["\\.xoj" 
   "compressing" "gzip" ("-c" "-q") 
   "uncompressing" "gzip" ("-c" "-q" "-d") 
   t nil 
   "\213"]
 )
(jka-compr-update)
  
Advertisements

Written by zsh

April 20, 2009 at 4:17 pm

Posted in /usr/bin, emacs

Tagged with , , ,