# HG changeset patch # User Oleksandr Gavenko # Date 1449742111 -7200 # Node ID 5fd2e01bf58210d33b7bd937d70cca860b0c0817 # Parent ca9bfec974ac1a345a2e602ac69061ca0bcbc763 Interpret ANSI color esacape sequence by colorifying cotent. diff -r ca9bfec974ac -r 5fd2e01bf582 .emacs-my --- a/.emacs-my Wed Dec 02 23:41:53 2015 +0200 +++ b/.emacs-my Thu Dec 10 12:08:31 2015 +0200 @@ -489,6 +489,14 @@ (ansi-color-for-comint-mode-on) +(defun my-ansi-color (&optional beg end) + "Interpret ANSI color esacape sequence by colorifying cotent." + (interactive + (if (use-region-p) + (list (region-beginning) (region-end)) + (list (point-min) (point-max)))) + (ansi-color-apply-on-region beg end)) + (setq explicit-bash-args '("-i")) (setq explicit-sh-args '("-i"))