summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2018-12-09 21:29:35 -0500
committerAmin Bandali <bandali@gnu.org>2018-12-09 21:29:35 -0500
commit319010c3bb259b32c52e6ab1dded89dbdc345903 (patch)
tree80033cdba5c30b7edf771ddb198433b0dc09e8b6
parent4b7207e1fa83e684820bf332b71a7200eeed4a80 (diff)
downloadconfigs-319010c3bb259b32c52e6ab1dded89dbdc345903.tar.gz
configs-319010c3bb259b32c52e6ab1dded89dbdc345903.tar.xz
configs-319010c3bb259b32c52e6ab1dded89dbdc345903.zip
[emacs] don't fail if secrets file not found, but show warning
Diffstat (limited to '')
-rw-r--r--init.org5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.org b/init.org
index d3af370..44f31dc 100644
--- a/init.org
+++ b/init.org
@@ -327,8 +327,11 @@ it it's own file. While at it, treat themes as safe.
** Secrets file
+Load the secrets file if it exists, otherwise show a warning.
+
#+begin_src emacs-lisp
-(load (no-littering-expand-etc-file-name "secrets"))
+(with-demoted-errors
+ (load (no-littering-expand-etc-file-name "secrets")))
#+end_src
** Better =$PATH= handling