]> git.notmuchmail.org Git - notmuch-wiki/blobdiff - emacstips.mdwn
Add the weird "shortcuts" for gpg signing mails
[notmuch-wiki] / emacstips.mdwn
index 1f3fdd1f4140773b99f9e5a1f846d0fd232f92ec..5863ab60609fd2dd9fe336bc62c50c6838719ca6 100644 (file)
@@ -244,3 +244,22 @@ As its name implies, notmuch isn't really doing that much (which is part of its
                                                   system-configuration ")")))
                         (setq message-newsreader notmuch-user-agent))
                   ))
+
+
+* <span id="sign_messages_gpg">**how to sign/encrypt my messages with
+  gpg**</span>
+
+  You can manually sign your messages with gpg by invoking `M-x
+  mml-secure-sign-pgpmime` (or `M-x
+  mml-secure-encrypt-pgpmime`). These functions are available via the
+  convenient (*cough cough*) keybindings `C-c C-m s p` and `C-c C-m c
+  p` by default. To sign my outgoing mail by default, I use this hook
+  in my .emacs file:
+
+                      ;;sign messages by default
+                      (add-hook 'message-setup-hook 'mml-secure-sign-pgpmime)
+
+  This inserts the blurb `<#part sign=pgpmime>` into the beginning of
+  my mail text body and will be converted into a pgp signature when
+  sending (so I can just manually delete that line if I do not want a
+  mail to be signed).
\ No newline at end of file