From de246cb504d221cf84987887b1422477848ee915 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 16 Aug 2023 01:27:40 +0200 Subject: emacs: Use the wonderful ‘=’ function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/emacs') 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 -- cgit v1.2.3