summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/config.org4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/emacs/config.org b/.config/emacs/config.org
index 1dc0314..bc28a35 100644
--- a/.config/emacs/config.org
+++ b/.config/emacs/config.org
@@ -706,8 +706,8 @@ every time. I would like to have this buffer, but only when things go wrong.
(add-hook 'compilation-finish-functions
(lambda (buffer _)
(with-current-buffer buffer
- (unless (or (> compilation-num-warnings-found 0)
- (> compilation-num-errors-found 0))
+ (when (= 0 compilation-num-errors-found
+ compilation-num-warnings-found)
(kill-buffer buffer)))))
#+END_SRC