Skip to content

Commit

Permalink
emacs: Do not fail if private.el does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
veracioux committed Jan 9, 2024
1 parent efa04b7 commit 25b18a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emacs.org
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,8 @@ I use this variable to check if the config loaded correctly.
** Private config
The private config is loaded from [[~/.emacs.d/haris/private][~/.emacs.d/haris/private.el]].
#+begin_src elisp
(load-file "~/.emacs.d/haris/private.el")
(let ((file "~/.emacs.d/haris/private.el"))
(when (file-exists-p file) (load-file file)))
#+end_src
** Local variables :noexport:
# Local Variables:
Expand Down

0 comments on commit 25b18a6

Please sign in to comment.