From 2f5dd722324587c5640c9b6f118ae473d18cae7e Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 9 Jan 2021 14:41:31 -0600 Subject: Fix org loading on tangle --- config.org | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index 221bc4a..082032d 100644 --- a/config.org +++ b/config.org @@ -5,7 +5,7 @@ #+EXPORT_FILE_NAME: README.md #+OPTIONS: toc:nil #+BANKRUPTCY_COUNT: 3.2 -#+Time-stamp: <2021-01-09 09:38:21 acdw> +#+Time-stamp: <2021-01-09 14:40:57 acdw> * Basics @@ -1948,7 +1948,8 @@ I’m only enabling this at home for now, since it requires building stuff. (load conf 'no-error)) ;; A plain require here just loads the older `org' in Emacs' install dir. We ;; need to add the newer one to the `load-path', hopefully that's all. - (add-to-list 'load-path (expand-file-name "straight/build/org/")) + (add-to-list 'load-path (expand-file-name "straight/build/org/" + user-emacs-directory)) (require 'org) (org-babel-load-file conf-org))) #+END_SRC @@ -1991,6 +1992,8 @@ I’m only enabling this at home for now, since it requires building stuff. "config.el" user-emacs-directory)) (message "%s" "Tangling config.org...") + (add-to-list 'load-path (expand-file-name "straight/build/org/" + user-emacs-directory)) (require 'org) (let ((inits (org-babel-tangle))) ;; byte-compile resulting files -- cgit 1.4.1-21-gabe81