Don't apply ansi colours to Org files

This commit is contained in:
TEC 2022-07-12 02:42:03 +08:00
parent 4d57d6f157
commit 777b4844e4
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 4 additions and 3 deletions

View File

@ -5188,9 +5188,10 @@ on that.
#+begin_src emacs-lisp :tangle (if (>= emacs-major-version 28) "yes" "no")
(after! text-mode
(add-hook! 'text-mode-hook
;; Apply ANSI color codes
(with-silent-modifications
(ansi-color-apply-on-region (point-min) (point-max) t))))
(unless (derived-mode-p 'org-mode)
;; Apply ANSI color codes
(with-silent-modifications
(ansi-color-apply-on-region (point-min) (point-max) t)))))
#+end_src
** Org