X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacstips.mdwn;h=7baa679a3d125513d0f287173fd3ee2789e4f64e;hb=8e7ee8668cf5f575c7e30c9c30d68a5995be29db;hp=2269cb7739892cf9d63ff01315e6bf7e3e818d56;hpb=ef658d2b34deac241229b1e80de2566765472ba3;p=notmuch-wiki diff --git a/emacstips.mdwn b/emacstips.mdwn index 2269cb7..7baa679 100644 --- a/emacstips.mdwn +++ b/emacstips.mdwn @@ -464,6 +464,7 @@ These functions are available via the standard `message-mode` keybindings ;; Sign messages by default. (add-hook 'message-setup-hook 'mml-secure-sign-pgpmime) + (setq mml-secure-openpgp-sign-with-sender t) This inserts the required `<#part sign=pgpmime>` into the beginning of the mail text body and will be converted into a pgp signature @@ -583,8 +584,8 @@ Here is an example configuration. ;; Use "home" identity by default (setq gnus-alias-default-identity "home") ;; Define rules to match work identity - (setq gnus-alias-identity-rules) - '(("work" ("any" "john.doe@\\(example\\.com\\|help\\.example.com\\)" both) "work")) + (setq gnus-alias-identity-rules + '(("work" ("any" "john.doe@\\(example\\.com\\|help\\.example.com\\)" both) "work"))) ;; Determine identity when message-mode loads (add-hook 'message-setup-hook 'gnus-alias-determine-identity) @@ -758,6 +759,9 @@ In general it is nice to have a key for org-links (not just for notmuch). For ex (define-key global-map "\C-cl" 'org-store-link) +Note the package was renamed from `org-notmuch` to `ol-notmuch` in recent +versions of org-mode, and you might want to `(require 'ol-notmuch)` instead. + ## Viewing diffs in notmuch The following code allows you to view an inline patch in diff-mode @@ -864,3 +868,9 @@ attachment. This is currently work in progress, but you can already add the hook to your `~/.emacs.d/notmuch-config.el` file to test it. Details available (and feedback welcome) in the [relevant discussion](https://notmuchmail.org/pipermail/notmuch/2018/026414.html). + +## Applying patches to git repositories + +The `notmuch-extract-thread-patches` and +`notmuch-extract-message-patches` commands from the `elpa-mailscripts` +package in Debian (and its derivatives) can do this for you.