X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacstips.mdwn;h=47f53e51e6e3d9f827d6e8c4c185810f2d3f5f55;hb=4dd17aeef3ee8db115690c23243bb4510ff416de;hp=37384940b86e5f93d0482d0e65d167e17a328f2f;hpb=30decac3a4d9832e37cc540a358f0314d9bf9bff;p=notmuch-wiki diff --git a/emacstips.mdwn b/emacstips.mdwn index 3738494..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: @@ -372,7 +372,7 @@ available: cc -o addrlookup addrlookup.c `pkg-config --cflags --libs gobject-2.0` -lnotmuch * Shell/fgrep/perl combination [nottoomuch-addresses.sh](https://github.com/domo141/nottoomuch/blob/master/nottoomuch-addresses.rst). - This tools maintains it's own address "database" gathered from email + This tools maintains its own address "database" gathered from email files notmuch knows and search from that "database" is done by `fgrep(1)`. * python/sqlite combination [notmuch-abook](https://github.com/guyzmo/notmuch-abook/) @@ -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 @@ -819,3 +826,16 @@ can turn the commit hash into a URL pointing there, for example: "-m" (concat "<" message-id ">") "-n" "1" "-f" "%{commit_ref}")))) + +## Never forget attachments + +Very often we forget to actually attach the file when we send an email +that's supposed to have an attachment. Did this never happen to you? +If not, then it will. + +There is a hook out there that checks the content of the email for +keywords and warns you before the email is sent out if there's no +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).