Skip to content

Commit

Permalink
tweak(compile): add a message on toggle burying buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Mar 21, 2023
1 parent a1c5ab7 commit 6c7c28d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ pre_bump_hooks = []
post_bump_hooks = []
pre_package_bump_hooks = []
post_package_bump_hooks = []
tag_prefix = "v"

[commit_types]
tweak = { changelog_title = "Tweaks" }
Expand All @@ -17,3 +16,4 @@ authors = []

[bump_profiles]

[packages]
6 changes: 5 additions & 1 deletion modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


(if (not (+emacs-features-p 'tree-sitter))
;; Use the external `tree-sitter' module
(+load minemacs-modules-dir "obsolete/me-tree-sitter.el")

;; Use built-in `treesit' when available
Expand Down Expand Up @@ -212,7 +213,10 @@ the children of class at point."
"Toggle auto-burying the successful compilation buffer."
(interactive)
(if (memq '+compilation--bury-if-successful-h compilation-finish-functions)
(remove-hook 'compilation-finish-functions #'+compilation--bury-if-successful-h)
(progn
(message "Disabled burying compilation buffer.")
(remove-hook 'compilation-finish-functions #'+compilation--bury-if-successful-h))
(message "Enabled burying compilation buffer.")
(add-hook 'compilation-finish-functions #'+compilation--bury-if-successful-h))))

(use-package apheleia
Expand Down

0 comments on commit 6c7c28d

Please sign in to comment.