From e401daecab43ff974474319d1f996c03a076d319 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Sat, 28 May 2016 14:06:03 +0300 Subject: [PATCH] notmuch-emacs-mua: use message-add-actions Use message.el -provided function message-add-actions to set(/add) #'save-buffers-kill-terminal into the message-exit-actions list. --- notmuch-emacs-mua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notmuch-emacs-mua b/notmuch-emacs-mua index 02d7fd74..08be145b 100755 --- a/notmuch-emacs-mua +++ b/notmuch-emacs-mua @@ -132,7 +132,7 @@ done # Kill the terminal/frame if we're creating one. if [ -z "$USE_EMACSCLIENT" -o -n "$CREATE_FRAME" -o -n "$NO_WINDOW" ]; then - ELISP="${ELISP} (setq message-exit-actions (list #'save-buffers-kill-terminal))" + ELISP="${ELISP} (message-add-action #'save-buffers-kill-terminal 'exit)" fi # End progn. -- 2.26.2