forked from colonelpanic/dotfiles
add ansi-color-mode.el
This commit is contained in:
parent
63103674b9
commit
13bb4059ed
11
dotfiles/emacs.d/ansi-color-mode.el
Normal file
11
dotfiles/emacs.d/ansi-color-mode.el
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
(defun ansi-color-apply-on-region-int (beg end)
|
||||||
|
"interactive version of func"
|
||||||
|
(interactive "r")
|
||||||
|
(ansi-color-apply-on-region beg end))
|
||||||
|
|
||||||
|
(define-derived-mode fundamental-ansi-mode fundamental-mode "fundamental ansi"
|
||||||
|
"Fundamental mode that understands ansi colors."
|
||||||
|
(require 'ansi-color)
|
||||||
|
(ansi-color-apply-on-region (point-min) (point-max)))
|
||||||
|
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.ansi_color\\'" . fundamental-ansi-mode))
|
Loading…
Reference in New Issue
Block a user