Skip to content

Commit c03fd25

Browse files
committed
Using getenv for my-life instead of symlinks
1 parent f035305 commit c03fd25

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

init.org

+4-2
Original file line numberDiff line numberDiff line change
@@ -5572,8 +5572,10 @@ my to-do list and my init file, side-by-side.
55725572
;; and cosmetics, then open my notes files.
55735573
(add-hook 'emacs-startup-hook
55745574
(lambda ()
5575-
(load-file "~/my-life.el")
5576-
(find-file "~/my-life.org")))
5575+
(-let [my-life.el (getenv "MY_LIFE_ELISP")]
5576+
(unless org-default-notes-file
5577+
(error "Add to .zshrc “ export MY_LIFE_ELISP=\"/full/path/to/my-life.el\" ”, then load my-life.el"))
5578+
(load-file my-life.el))))
55775579
#+END_SRC
55785580

55795581
There is the neat-looking [[https://github.com/emacs-dashboard/emacs-dashboard][emacs-dashboard]] package that provides an extensbile

0 commit comments

Comments
 (0)