diff options
-rw-r--r-- | init.org | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -84,11 +84,11 @@ "Directory used for downloads and such.") (defvar jao-site-dir (expand-file-name "site" jao-emacs-dir)) - (defun jao-site-el (basename) - (expand-file-name (concat basename ".el") jao-site-dir)) + (defun jao-site-el (basename &optional gpg) + (expand-file-name (concat basename ".el" (when gpg ".gpg")) jao-site-dir)) - (defun jao-load-site-el (basename) - (let ((lf (jao-site-el basename))) + (defun jao-load-site-el (basename &optional gpg) + (let ((lf (jao-site-el basename gpg))) (if (file-exists-p lf) (load lf) (message "Attempted to load non existing %s" lf)))) @@ -4321,4 +4321,5 @@ * Last minute (post.el) #+begin_src emacs-lisp (jao-load-site-el "post") - #+end_src + (jao-load-site-el "secrets" t) +#+end_src |