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
2
init.el
2
init.el
|
|
@ -7,11 +7,9 @@
|
|||
(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.
|
||||
(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)
|
||||
(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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue