summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-03-24 04:04:31 +0000
committerjao <jao@gnu.org>2021-03-24 04:04:31 +0000
commita919958ee05322eb39dc11c43024635590993a44 (patch)
tree915eb55c7195657d804b95dfa32097cfaf1cb43b
parent349e2696f454c0432e6f10fa4005487693b8d179 (diff)
downloadelibs-a919958ee05322eb39dc11c43024635590993a44.tar.gz
elibs-a919958ee05322eb39dc11c43024635590993a44.tar.bz2
using an ecrypted secrets file
-rw-r--r--init.org11
1 files changed, 6 insertions, 5 deletions
diff --git a/init.org b/init.org
index 1477225..84c1b25 100644
--- a/init.org
+++ b/init.org
@@ -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