Org: Encrypt todo and contacts

master
Pierre Neidhardt 2018-07-12 12:01:50 +02:00
parent b10bc94e47
commit 090b88a3b9
2 changed files with 6 additions and 2 deletions

View File

@ -24,7 +24,7 @@
indent-tabs-mode nil)
;;; Agendas.
(add-to-list 'org-agenda-files "~/personal/todo/todo.org")
(add-to-list 'org-agenda-files "~/personal/todo/todo.org.gpg")
(defun ambrevar/org-switch-agenda-file (&optional other-window)
"Switch between org-agenda and the first org-agenda-files."
(interactive "P")
@ -51,7 +51,7 @@
(add-hook 'org-mode-hook fun))
(when (require 'org-contacts nil t)
(let ((contacts "~/personal/contacts/contacts.org"))
(let ((contacts "~/personal/contacts/contacts.org.gpg"))
(when (file-exists-p contacts)
;; When used to auto-complete e-mail addresses, the file is automatically
;; loaded. The buffer usually need not be restored by a desktop session.

View File

@ -58,3 +58,7 @@ cmd = man -P cat
[credential]
helper = netrc
[diff "gpg"]
binary = true
textconv = gpg -d --quiet --yes --compress-algo=none --no-encrypt-to