From: Léo Gaspard Date: Sun, 21 Oct 2018 09:33:41 +0000 (+0900) Subject: add org-notmuch install instructions for NixOS X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=commitdiff_plain;h=4dd17aeef3ee8db115690c23243bb4510ff416de add org-notmuch install instructions for NixOS --- diff --git a/emacstips.mdwn b/emacstips.mdwn index 7d8b5d0..47f53e5 100644 --- a/emacstips.mdwn +++ b/emacstips.mdwn @@ -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)