From a4a4b14a5270ab0ae3917a385055a5a5360ce683 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Wed, 31 Oct 2018 11:41:23 -0400 Subject: [PATCH] =?utf8?q?[emacs/amin/notmuch]=20don=E2=80=99t=20delete=20?= =?utf8?q?other=20windows=20when=20prefix=20arg?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- init.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.org b/init.org index e4c7a1e..790c967 100644 --- a/init.org +++ b/init.org @@ -1623,8 +1623,9 @@ See [[notmuch:id:87muuqsvci.fsf@fencepost.gnu.org][bug follow-up]]. #+begin_src emacs-lisp (defun amin/notmuch () "Delete other windows, then launch `notmuch'." - (interactive) - (delete-other-windows) + (interactive + (when (equal current-prefix-arg nil) + (delete-other-windows))) (notmuch)) (use-package notmuch -- 2.20.1