Reputation: 807
Why i'm missing color features in emacs compilation mode whereas gnome-terminal its all fine. This is the code which i wrote to generate the test.
.emacs I have following lines as suggest in ANSI Coloring in Compilation Mode.
(require 'ansi-color)
(defun colorize-compilation-buffer ()
(toggle-read-only)
(ansi-color-apply-on-region (point-min) (point-max))
(toggle-read-only))
(add-hook 'compilation-filter-hook 'colorize-compilation-buffer)
Upvotes: 1
Views: 1153
Reputation: 121442
Can you check that your emacs supports 256 colors?: M-x list-colors-display
Did you try to change the tty-color-mode
to 256? CF: http://www.gnu.org/savannah-checkouts/gnu/emacs/manual/html_node/elisp/Font-and-Color-Parameters.html
Upvotes: 1