From a919958ee05322eb39dc11c43024635590993a44 Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 24 Mar 2021 04:04:31 +0000 Subject: using an ecrypted secrets file --- init.org | 11 ++++++----- 1 file 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 -- cgit v1.2.3