]> git.armaanb.net Git - config.org.git/commitdiff
Confirm before sending email
authorArmaan Bhojwani <me@armaanb.net>
Wed, 19 May 2021 03:47:15 +0000 (23:47 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 19 May 2021 03:47:15 +0000 (23:47 -0400)
config.org

index 7888771bb49e4e2cdb01914d0cf6f6be3d9943ef..ef3fe9fb5301e19d23222d3c46488a98ea7a846b 100644 (file)
@@ -396,8 +396,9 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m
                          :key ?b))
     :hook ((mu4e-compose-mode . flyspell-mode)
            (mu4e-compose-mode . auto-fill-mode)
-           (mu4e-view-mode-hook . turn-on-visual-line-mode)))
-
+           (mu4e-view-mode-hook . turn-on-visual-line-mode)
+           (message-send-hook . (lambda () (unless (yes-or-no-p "Ya sure 'bout that?")
+                                             (signal 'quit nil))))))
 #+end_src
 Discourage Gnus from displaying HTML emails
 #+begin_src emacs-lisp