X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacstips.mdwn;h=47f53e51e6e3d9f827d6e8c4c185810f2d3f5f55;hb=4dd17aeef3ee8db115690c23243bb4510ff416de;hp=083746e5029b8eb9c91dc6e24f1185a13a19c9f1;hpb=2e54b3e9e9faac1e0a7b3a10596a2ed8dc663bb1;p=notmuch-wiki diff --git a/emacstips.mdwn b/emacstips.mdwn index 083746e..47f53e5 100644 --- a/emacstips.mdwn +++ b/emacstips.mdwn @@ -18,7 +18,7 @@ or to your .emacs file. -## Controlling external handlers for attachements +## Controlling external handlers for attachments You can choose e.g. which pdf viewer to invoke from notmuch-show mode by adding a .mailcap file in your home directory. Here is an example: @@ -718,6 +718,13 @@ In Debian and derivatives, (add-to-list 'load-path "/usr/share/org-mode/lisp") +In NixOS, using `emacsWithPackages (epkgs: [ epkgs.orgPackages.org-plus-contrib ])`, + + (loop for p in load-path + do (if (file-accessible-directory-p p) + (let ((m (directory-files-recursively p "^org-notmuch.el$"))) + (if m (add-to-list 'load-path (file-name-directory (car m))))))) + Then (require 'org-notmuch) @@ -794,7 +801,7 @@ Add a new entry with "Function returning the URL:" set to: "-f" "%{id}")))) Replacing `http://patchwork.example.com/patch/`, `/path/to/pwclient`, and -`the-project` appropiately. You should now be able to stash the Patchwork URL +`the-project` appropriately. You should now be able to stash the Patchwork URL using `c l`. Going further, if the patch has been committed, you can get the commit hash with