Last Updated: February 25, 2016
·
2.462K
· tonini

Colorize your ansi escape sequences within Emacs

While testing under Rails I had to open the test.log file and surprise surprise a bunch of ansi escape sequences overhelm my emacs buffer.

To bring a bit of order into this mess here a quick and easy interactive function:

(require 'ansi-color)

(defun ansi-colorize-current-buffer ()
  "Colorize ansi escape sequences in the current buffer."
  (interactive)
  (ansi-color-apply-on-region (point-min) (point-max)))

ansi-color.el source

1 Response
Add your response

over 1 year ago ·