diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-16 01:27:40 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-16 01:27:40 +0200 |
commit | de246cb504d221cf84987887b1422477848ee915 (patch) | |
tree | df3f05abd135bebbbcdf8979e1aaf6fc27c293d3 /.config/emacs | |
parent | 27663f731cdad91ee2b1e31a692058dd2bf12a96 (diff) |
emacs: Use the wonderful ‘=’ function
Diffstat (limited to '.config/emacs')
-rw-r--r-- | .config/emacs/config.org | 4 |
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 |