Skip to content

Commit

Permalink
Fix highlighting bug in ag buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
bcobb committed Aug 25, 2018
1 parent eb4a6b1 commit 1133675
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/ohai-appearance.el
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,10 @@
;; Handle ANSI colours in compile buffer output.
;; From https://gist.github.com/jwiegley/8ae7145ba5ce64250a05
(defun compilation-ansi-color-process-output ()
(ansi-color-process-output nil)
(set (make-local-variable 'comint-last-output-start)
(point-marker)))
(when (eq major-mode 'compilation-mode)
(ansi-color-process-output nil)
(set (make-local-variable 'comint-last-output-start)
(point-marker))))
(add-hook 'compilation-filter-hook #'compilation-ansi-color-process-output)

;; Install the colour scheme according to personal taste.
Expand Down

0 comments on commit 1133675

Please sign in to comment.