]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-emacs-mua
notmuch-emacs-mua: use message-add-actions
[notmuch] / notmuch-emacs-mua
index 02d7fd74d67c539db9f7ff7b84a57d4e14c57b0f..08be145b24a7f45ba7eecf76c76622c75f62f8f7 100755 (executable)
@@ -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.