feat: load init.el from (org-)notes repo if it exists
This commit is contained in:
parent
ad0adbc726
commit
7285b8750e
1 changed files with 4 additions and 0 deletions
4
init.el
4
init.el
|
|
@ -7,10 +7,14 @@
|
|||
(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)))
|
||||
|
||||
(when (file-readable-p custom-file)
|
||||
(load custom-file))
|
||||
|
||||
(when (file-readable-p notes-config-file)
|
||||
(load notes-config-file))
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue