summaryrefslogtreecommitdiff
path: root/.config/emacs/config.org
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-16 01:27:40 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-16 01:27:40 +0200
commitde246cb504d221cf84987887b1422477848ee915 (patch)
treedf3f05abd135bebbbcdf8979e1aaf6fc27c293d3 /.config/emacs/config.org
parent27663f731cdad91ee2b1e31a692058dd2bf12a96 (diff)
emacs: Use the wonderful ‘=’ function
Diffstat (limited to '.config/emacs/config.org')
-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