]> git.notmuchmail.org Git - notmuch-wiki/commitdiff
add org-notmuch install instructions for NixOS
authorLéo Gaspard <leo@gaspard.io>
Sun, 21 Oct 2018 09:33:41 +0000 (18:33 +0900)
committerLéo Gaspard <leo@gaspard.io>
Sun, 21 Oct 2018 09:33:41 +0000 (18:33 +0900)
emacstips.mdwn

index 7d8b5d071ffb315f740494f9f68be5f76e4cbb85..47f53e51e6e3d9f827d6e8c4c185810f2d3f5f55 100644 (file)
@@ -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)