Browse Source

Encypt dotfiles

main
parent
commit
0b4adc1eef
  1. 4
      README.org
  2. BIN
      docs/birthdays.org.gpg
  3. BIN
      docs/courses.org.gpg
  4. BIN
      docs/daily/2021-02-03.org.gpg
  5. BIN
      docs/daily/2021-02-04.org.gpg
  6. BIN
      docs/holidays.org.gpg
  7. 13
      modules/writing.el

4
README.org

@ -831,8 +831,8 @@ Override ~org-agenda-file-regexp~ to include =.org.gpg= files.
Configure agenda sources. Configure agenda sources.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq org-agenda-files '("~/.local/source/secrets/org/"
"~/.local/source/dotfiles/docs/daily/"))
(setq org-agenda-files '("~/.emacs.d/docs/"
"~/.emacs.d/docs/daily/"))
#+end_src #+end_src
Open an agenda buffer with =SPC a=. Open an agenda buffer with =SPC a=.

BIN
docs/birthdays.org.gpg

BIN
docs/courses.org.gpg

BIN
docs/daily/2021-02-03.org.gpg

BIN
docs/daily/2021-02-04.org.gpg

BIN
docs/holidays.org.gpg

13
modules/writing.el

@ -10,7 +10,9 @@
(use-package org-roam (use-package org-roam
:hook (after-init . org-roam-mode) :hook (after-init . org-roam-mode)
:custom (org-roam-directory org-directory))
:custom
(org-roam-directory org-directory)
(org-roam-encrypt-files t))
(use-package org-roam-server (use-package org-roam-server
:hook (org-roam-mode . org-roam-server-mode)) :hook (org-roam-mode . org-roam-server-mode))
@ -127,8 +129,13 @@
(dotfiles/leader (dotfiles/leader
"m" '(mu4e :which-key "Mail")) "m" '(mu4e :which-key "Mail"))
(setq org-agenda-files '("~/.local/source/secrets/org/"
"~/.local/source/dotfiles/docs/daily/"))
(unless (string-match-p "\\.gpg" org-agenda-file-regexp)
(setq org-agenda-file-regexp
(replace-regexp-in-string "\\\\\\.org" "\\\\.org\\\\(\\\\.gpg\\\\)?"
org-agenda-file-regexp)))
(setq org-agenda-files '("~/.emacs.d/docs/"
"~/.emacs.d/docs/daily/"))
(dotfiles/leader (dotfiles/leader
"a" '(org-agenda :which-key "Agenda")) "a" '(org-agenda :which-key "Agenda"))

Loading…
Cancel
Save