2021-08-17 11:49:19 +00:00
|
|
|
;;; init-compile.el --- Compilation Configuration File -*- lexical-binding: t -*-
|
|
|
|
;;; Commentary:
|
|
|
|
;; Based on code from prelude-editor.el
|
|
|
|
;;; Code:
|
|
|
|
|
2023-05-19 11:09:57 +00:00
|
|
|
(use-feature compile
|
2021-08-17 11:49:19 +00:00
|
|
|
:custom
|
|
|
|
(compilation-ask-about-save nil)
|
|
|
|
(compilation-always-kill t)
|
|
|
|
(compilation-scroll-output 'first-error))
|
|
|
|
|
|
|
|
;; http://stackoverflow.com/a/3072831/355252
|
2023-05-19 11:09:57 +00:00
|
|
|
(use-feature ansi-color
|
2021-08-17 11:49:19 +00:00
|
|
|
:hook
|
|
|
|
(compilation-filter . (lambda ()
|
|
|
|
(when (eq major-mode 'compilation-mode)
|
|
|
|
(let ((inhibit-read-only t))
|
|
|
|
(ansi-color-apply-on-region (point-min) (point-max)))))))
|
|
|
|
|
2022-10-11 12:35:31 +00:00
|
|
|
(use-package winnow
|
|
|
|
:hook (compilation-mode . winnow-mode))
|
|
|
|
|
2021-08-17 11:49:19 +00:00
|
|
|
(provide 'init-compile)
|
|
|
|
;;; init-compile.el ends here
|