Skip to content

Commit

Permalink
tweak(compile): enable ANSI colors, restore savehist integration
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Mar 28, 2023
1 parent 720da8c commit c701113
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,13 @@ the children of class at point."
(use-package compile
:straight (:type built-in)
:commands +toggle-burry-compilation-buffer-if-successful
;; Enable ANSI colors in compilation buffer
:hook (compilation-filter . 'ansi-color-compilation-filter)
:config
;; Integration of `compile' with `savehist'
(with-eval-after-load 'savehist
(add-to-list 'savehist-additional-variables 'compile-history))

;; Auto-close the compilation buffer if succeeded without warnings.
;; Adapted from: stackoverflow.com/q/11043004/3058915
(defun +compilation--bury-if-successful-h (buf str)
Expand Down

0 comments on commit c701113

Please sign in to comment.