Always apply ansi color codes to compilation buffers
This commit is contained in:
parent
cfe2fe87d9
commit
aec4fbe590
2 changed files with 7 additions and 3 deletions
|
@ -566,9 +566,7 @@ loads MODULE SUBMODULE's packages.el file."
|
||||||
t)))
|
t)))
|
||||||
|
|
||||||
(defun doom-packages--async-run (fn)
|
(defun doom-packages--async-run (fn)
|
||||||
(let* ((default-directory doom-emacs-dir)
|
(let* ((default-directory doom-emacs-dir))
|
||||||
(compilation-filter-hook
|
|
||||||
(list (lambda () (ansi-color-apply-on-region compilation-filter-start (point))))))
|
|
||||||
(compile (format "%s --quick --batch -l core/core.el -f %s"
|
(compile (format "%s --quick --batch -l core/core.el -f %s"
|
||||||
(executable-find "emacs")
|
(executable-find "emacs")
|
||||||
(symbol-name fn)))
|
(symbol-name fn)))
|
||||||
|
|
|
@ -506,6 +506,10 @@ confirmation."
|
||||||
t))
|
t))
|
||||||
(setq confirm-kill-emacs #'doom-quit-p)
|
(setq confirm-kill-emacs #'doom-quit-p)
|
||||||
|
|
||||||
|
(defun doom|ansi-color-apply ()
|
||||||
|
"TODO"
|
||||||
|
(ansi-color-apply-on-region compilation-filter-start (point)))
|
||||||
|
|
||||||
(defun doom|no-fringes-in-minibuffer ()
|
(defun doom|no-fringes-in-minibuffer ()
|
||||||
"Disable fringes in the minibuffer window."
|
"Disable fringes in the minibuffer window."
|
||||||
(set-window-fringes (minibuffer-window) 0 0 nil))
|
(set-window-fringes (minibuffer-window) 0 0 nil))
|
||||||
|
@ -567,6 +571,8 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
||||||
(add-hook 'kill-buffer-query-functions #'doom|protect-visible-buffers)
|
(add-hook 'kill-buffer-query-functions #'doom|protect-visible-buffers)
|
||||||
;; Renames major-modes [pedantry intensifies]
|
;; Renames major-modes [pedantry intensifies]
|
||||||
(add-hook 'after-change-major-mode-hook #'doom|set-mode-name)
|
(add-hook 'after-change-major-mode-hook #'doom|set-mode-name)
|
||||||
|
;; Ensure ansi codes in compilation buffers are replaced
|
||||||
|
(add-hook 'compilation-filter-hook #'doom|ansi-color-apply)
|
||||||
;;
|
;;
|
||||||
(run-hooks 'doom-init-ui-hook))
|
(run-hooks 'doom-init-ui-hook))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue