From eb0b7f14a58c2fc0d7a91b9656bc831933d1841f Mon Sep 17 00:00:00 2001 From: Akhil Wali Date: Sat, 2 May 2020 17:56:52 +1200 Subject: [PATCH] Encrypt and change location of org-gcal-token-file * Move `org-gcal-token-file` to `doom-cache-dir` * Encrypt `org-gcal-token-file` using GPG * If old file exists, move it to new location with encryption --- modules/app/calendar/config.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/app/calendar/config.el b/modules/app/calendar/config.el index 66a26291e..2dbe78f08 100644 --- a/modules/app/calendar/config.el +++ b/modules/app/calendar/config.el @@ -42,10 +42,12 @@ org-gcal-fetch org-gcal-post-at-point org-gcal-delete-at-point) + :init + (defvar org-gcal-dir (concat doom-cache-dir "org-gcal/")) + (defvar org-gcal-token-file (concat org-gcal-dir "token.gpg")) :config ;; hack to avoid the deferred.el error (defun org-gcal--notify (title mes) (message "org-gcal::%s - %s" title mes))) - ;; (use-package! alert)