Emacsのcompilation-modeでANSIカラーが表示できないのを直す

EmacsのCompile Commandでjadeを使ったときに、*compilation*バッファに文字化けみたいなものが表示されてた。

^[[90mrendered ^[[36mindex.html ^[[0m


どうやらANSIカラーのカラーコードだったので、カラー表示できるようにした。

(require 'ansi-color)
(add-hook 'compilation-filter-hook
          '(lambda ()
             (ansi-color-apply-on-region (point-min) (point-max))))

参考ページ
http://stackoverflow.com/questions/3072648/cucumbers-ansi-colors-messing-up-emacs-compilation-buffer