1

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)
Community
  • 1
  • 1
rho
  • 771
  • 9
  • 24

1 Answers1

1

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

creack
  • 116,210
  • 12
  • 97
  • 73
  • 256-colors is supported by `emacs -nw` when I set the variable to TERM="xterm-256colors". I haven't checked the `tty-color-mode` – rho May 26 '13 at 07:02
  • how to change `tty-color-mode` can't figure out :/ – rho May 26 '13 at 07:29