ansi colors

I really like colored terminal output, like that of ls –color. Makes using a terminal just a little more interesting. I mis that feature in emacs shell mode, so I thought I’d require ansi-color and enable it with :

(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)

But at first it looks like

I wasn’t very happy with that, so I decided to fiddle with the attributes, and came up with :

(custom-set-variables  '(ansi-color-names-vector (vector "black" "sienna" "DeepSkyBlue4" "yellow" "NavyBlue" "magenta" "cyan" "white"))  )

Which renders as:

Much better…


About this entry