diff options
author | 2023-02-03 20:00:36 +0100 | |
---|---|---|
committer | 2023-02-03 20:00:36 +0100 | |
commit | 7affa2f0d1702420484df9edb943c9968d4e4daa (patch) | |
tree | 62cb980a7eb6af52f289d022986b758d5b673f78 | |
parent | elogt.el: colorize levels (diff) | |
download | emacs-elogt-7affa2f0d1702420484df9edb943c9968d4e4daa.tar.gz emacs-elogt-7affa2f0d1702420484df9edb943c9968d4e4daa.tar.bz2 emacs-elogt-7affa2f0d1702420484df9edb943c9968d4e4daa.zip |
elogt.el: colorize ANSI sequences
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r-- | elogt.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -42,6 +42,9 @@ ;;; Code: +(require 'ansi-color) + + (defconst elogt-version "0.0.0" "ElogT version.") @@ -155,6 +158,8 @@ Return opened buffer (done via `find-file')." (let ((buffer (elogt--open-entry-file))) (with-current-buffer buffer (fundamental-mode) + (ansi-color-apply-on-region (point-min) (point-max) 'preserve-sequences) + (read-only-mode) (view-mode)))) (defun elogt--delete-entry-file () |