X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacstips.mdwn;h=79df754dc1476639fd9209aface7a72720965412;hb=ae9c5293123a837c07e79b63bae931e1f5da570e;hp=2269cb7739892cf9d63ff01315e6bf7e3e818d56;hpb=ef658d2b34deac241229b1e80de2566765472ba3;p=notmuch-wiki diff --git a/emacstips.mdwn b/emacstips.mdwn index 2269cb7..79df754 100644 --- a/emacstips.mdwn +++ b/emacstips.mdwn @@ -583,8 +583,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 +758,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 +867,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.