diff options
| author | Tomi Ollila <tomi.ollila@iki.fi> | 2016-05-28 14:06:03 +0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2016-06-11 13:09:08 -0300 |
| commit | e401daecab43ff974474319d1f996c03a076d319 (patch) | |
| tree | aa37e848cfed72e3fc6ea4963bdf20cd69883e0d | |
| parent | 36492f20a71906413d9922dbad5e18571059f57a (diff) | |
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.
| -rwxr-xr-x | notmuch-emacs-mua | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
