Previous: , Up: Tips and Tricks   [Contents]


D.5 Confirmation before sending

To protect yourself from sending messages too hastily, you can add a final confirmation, which you can of course make as elaborate as you wish.

(add-hook 'message-send-hook
  (lambda ()
    (unless (yes-or-no-p "Sure you want to send this?")
      (signal 'quit nil))))