From 4dd17aeef3ee8db115690c23243bb4510ff416de Mon Sep 17 00:00:00 2001 From: =?utf8?q?L=C3=A9o=20Gaspard?= Date: Sun, 21 Oct 2018 18:33:41 +0900 Subject: [PATCH] add org-notmuch install instructions for NixOS --- emacstips.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- 2.43.0