Skip to content

Instantly share code, notes, and snippets.

@shegeley
Last active February 17, 2025 19:25
Show Gist options
  • Save shegeley/34c556420cdad28ef0c632ae48cf9851 to your computer and use it in GitHub Desktop.
Save shegeley/34c556420cdad28ef0c632ae48cf9851 to your computer and use it in GitHub Desktop.
Guix System Emacs daemons.el colorized output parsing fix
(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