diff options
author | jao <jao@gnu.org> | 2021-03-24 04:04:31 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-03-24 04:04:31 +0000 |
commit | a919958ee05322eb39dc11c43024635590993a44 (patch) | |
tree | 915eb55c7195657d804b95dfa32097cfaf1cb43b | |
parent | 349e2696f454c0432e6f10fa4005487693b8d179 (diff) | |
download | elibs-a919958ee05322eb39dc11c43024635590993a44.tar.gz elibs-a919958ee05322eb39dc11c43024635590993a44.tar.bz2 |
using an ecrypted secrets file
-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 |