Last active
February 17, 2025 19:25
-
-
Save shegeley/34c556420cdad28ef0c632ae48cf9851 to your computer and use it in GitHub Desktop.
Guix System Emacs daemons.el colorized output parsing fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(with-eval-after-load 'daemons | |
(require 'ansi-color) | |
(defun display-ansi-sequences () | |
(let ((inhibit-read-only t)) | |
(ansi-color-apply-on-region (point-min) (point-max)))) | |
(setq daemons--shell-command-to-string-fun | |
(lambda (command) (ansi-color-filter-apply (shell-command-to-string command)))) | |
(add-hook 'daemons-output-mode-hook 'display-ansi-sequences)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment