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)))
Written by samuel tonini
Related protips
1 Response
See improved version at http://stackoverflow.com/a/20788623/173149
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Emacs
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#