Skip to content

Commit

Permalink
Colourise all compile commands (for rspec & others)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Purcell committed Jul 9, 2015
1 parent 7099bbd commit 5535672
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lisp/init-compile.el
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,11 @@
(view-mode 1))))


(after-load 'compile
(require 'ansi-color)
(defun sanityinc/colourise-compilation-buffer ()
(when (eq major-mode 'compilation-mode)
(ansi-color-apply-on-region compilation-filter-start (point-max))))
(add-hook 'compilation-filter-hook 'sanityinc/colourise-compilation-buffer))

(provide 'init-compile)

0 comments on commit 5535672

Please sign in to comment.