X-Git-Url: https://git.notmuchmail.org/git?p=notmuch-wiki;a=blobdiff_plain;f=emacstips.mdwn;h=47f53e51e6e3d9f827d6e8c4c185810f2d3f5f55;hp=7d8b5d071ffb315f740494f9f68be5f76e4cbb85;hb=4dd17aeef3ee8db115690c23243bb4510ff416de;hpb=7c0053ea27fcbf116d7e1ba9d1c538ee8c70f7a9 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)