[emacs] don't fail if secrets file not found, but show warning
authorAmin Bandali <bandali@gnu.org>
Mon, 10 Dec 2018 02:29:35 +0000 (21:29 -0500)
committerAmin Bandali <bandali@gnu.org>
Mon, 10 Dec 2018 02:29:35 +0000 (21:29 -0500)
init.org

index d3af370..44f31dc 100644 (file)
--- a/init.org
+++ b/init.org
@@ -327,8 +327,11 @@ it it's own file. While at it, treat themes as safe.
 
 ** Secrets file
 
 
 ** Secrets file
 
+Load the secrets file if it exists, otherwise show a warning.
+
 #+begin_src emacs-lisp
 #+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
 #+end_src
 
 ** Better =$PATH= handling