diff --git a/init.el b/init.el index 3d3076a..2db37ad 100644 --- a/init.el +++ b/init.el @@ -540,9 +540,15 @@ (setq-local completing-read-function #'completing-read-default) (setq-local completion-in-region-function #'completion--in-region)) + ;; https://github.com/mgalgs/.emacs.d/blob/master/init.el#L599-L602 + (defun mgalgs-erc-ansi-colors () + "For ansi color escape sequences" + (ansi-color-apply-on-region (point-min) (point-max))) + :hook ((erc-insert-post erc-send-post) . erc-save-buffer-in-logs) ((erc-mode) . basil-default-completion) + ((erc-insert-modify) . mgalgs-erc-ansi-colors) :config (load (concat user-utils "erc-faces"))