Emacs: Missing Colors in Compilation Mode

1.1k Views Asked by At

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.

Screenshot

.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)
1

There are 1 best solutions below

2
On

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