]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
display-ansi-color
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 10 Dec 2025 12:40:08 +0000 (13:40 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 10 Dec 2025 12:40:08 +0000 (13:40 +0100)
* bba.org: apply ansi-color filter in current buffer.

bba.org

diff --git a/bba.org b/bba.org
index 74ea52bca7addd245537a9884b71ceefe21d7bae..a92ec5aaac6cc9c57d4adbd8e21b695cc1d646ed 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -317,6 +317,16 @@ Keep track of your important stuff!
 
 #+END_SRC
 
+* ansi
+[2025-12-05 Fri 11:21]
+
+#+begin_src emacs-lisp
+  (require 'ansi-color)
+  (defun display-ansi-colors ()
+    (interactive)
+    (ansi-color-apply-on-region (point-min) (point-max)))
+#+end_src
+
 * async
 #+BEGIN_SRC emacs-lisp
   (if (>= emacs-major-version 24)