From d2bf2f9e394b443cb27081de9ccd956e9549ff16 Mon Sep 17 00:00:00 2001 From: fpi Date: Mon, 28 Mar 2022 17:29:56 +0200 Subject: Switch to possibly multiple .el.gpg. secret files --- emacs-init.org | 5 ++--- emacs-private-00.el.gpg | Bin 0 -> 1289 bytes emacs-private.el.gpg | Bin 1289 -> 0 bytes 3 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 emacs-private-00.el.gpg delete mode 100644 emacs-private.el.gpg diff --git a/emacs-init.org b/emacs-init.org index ea29924..cb35283 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -170,9 +170,8 @@ A similar behaviour can be achieved using [[https://github.com/AGWA/git-crypt][g details regarding my emacs configuration in =emacs-private.el.gpg= and load this file here. #+begin_src emacs-lisp -(setq secret-file (expand-file-name "emacs-private.el.gpg" - user-emacs-directory)) -(load secret-file) +(mapc (lambda (file) (load file)) + (directory-files default-directory t "emacs-.*el.gpg")) #+end_src This is the content of =init.el=. Notice the ~:tangle tangle/init.el~ diff --git a/emacs-private-00.el.gpg b/emacs-private-00.el.gpg new file mode 100644 index 0000000..1efdb54 Binary files /dev/null and b/emacs-private-00.el.gpg differ diff --git a/emacs-private.el.gpg b/emacs-private.el.gpg deleted file mode 100644 index 1efdb54..0000000 Binary files a/emacs-private.el.gpg and /dev/null differ -- cgit v1.2.3