summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-03-07 18:25:21 -0500
committerDavid Robillard <d@drobilla.net>2024-03-07 18:25:21 -0500
commitf3650f390749dcb687a2b9391785518e897492c4 (patch)
tree4d97ff0a4573ef7275bf0058c8600b037065625f /emacs/.emacs.d/init.el
parent2c69e3a006c90f77cd52275b9b2285e32f5b4e1d (diff)
downloaddotfiles-f3650f390749dcb687a2b9391785518e897492c4.tar.gz
dotfiles-f3650f390749dcb687a2b9391785518e897492c4.tar.bz2
dotfiles-f3650f390749dcb687a2b9391785518e897492c4.zip
Fix compilation buffer auto-close hook
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 67f7166..f6fdef9 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -330,8 +330,7 @@
'(visible-bell nil)
'(window-divider-default-bottom-width 1)
'(window-divider-default-right-width 1)
- '(window-divider-mode t)
- '(winner-mode t))
+ '(window-divider-mode t))
(if (eq system-type 'windows-nt)
(setq diff-command "C:/Program Files/Git/usr/bin/diff.exe"))
@@ -360,7 +359,6 @@
(cond ((and (string-match "compilation" (buffer-name buffer))
(string-match "finished" string))
(bury-buffer "*compilation*")
- ;; (winner-undo)
(message "Build successful."))
(t
(message "Compilation exited abnormally: %s" string))))
@@ -386,7 +384,8 @@
(setq split-height-threshold nil)
(setq split-width-threshold 0)
-(setq compilation-finish-functions 'compile-autoclose)
+
+(add-hook 'compilation-finish-functions #'compile-autoclose)
;; Remove slow Maven regexp that makes the compilation buffer clunky
(setq compilation-error-regexp-alist