From 777b4844e4bf953ca8995649a952848abfa91ed3 Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 12 Jul 2022 02:42:03 +0800 Subject: [PATCH] Don't apply ansi colours to Org files --- config.org | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index 2780e8c..343975a 100644 --- a/config.org +++ b/config.org @@ -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