fix: load init.el of notes repo when org-roam is properly loaded
This avoids all kinds of issues about variables not being declared, etc. in the project-notes init.el
This commit is contained in:
parent
f5ef8d68c5
commit
d3dc9465dd
2 changed files with 1 additions and 2 deletions
|
|
@ -964,6 +964,7 @@ Preserve indentation in SRC blocks
|
||||||
(org-roam-db-autosync-mode)
|
(org-roam-db-autosync-mode)
|
||||||
;; Add todo lists to org-agenda
|
;; Add todo lists to org-agenda
|
||||||
(custom-set-variables '(org-agenda-files (directory-files-recursively org-roam-directory "todo\\.org$")))
|
(custom-set-variables '(org-agenda-files (directory-files-recursively org-roam-directory "todo\\.org$")))
|
||||||
|
(load (expand-file-name "init.el" org-roam-directory) :no-error-if-file-is-missing)
|
||||||
)
|
)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|
|
||||||
2
init.el
2
init.el
|
|
@ -7,11 +7,9 @@
|
||||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||||
;; This is the actual config file. It is omitted if it doesn't exist so emacs won't refuse to launch.
|
;; This is the actual config file. It is omitted if it doesn't exist so emacs won't refuse to launch.
|
||||||
(defvar my-config-file (expand-file-name "config.org" user-emacs-directory))
|
(defvar my-config-file (expand-file-name "config.org" user-emacs-directory))
|
||||||
(defvar notes-config-file (expand-file-name "init.el" "~/projects/notes/"))
|
|
||||||
|
|
||||||
(when (file-readable-p my-config-file)
|
(when (file-readable-p my-config-file)
|
||||||
(org-babel-load-file (expand-file-name my-config-file)))
|
(org-babel-load-file (expand-file-name my-config-file)))
|
||||||
|
|
||||||
(load notes-config-file :no-error-if-file-is-missing)
|
|
||||||
(load custom-file :no-error-if-file-is-missing)
|
(load custom-file :no-error-if-file-is-missing)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue