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
This commit is contained in:
Akhil Wali 2020-05-02 17:56:52 +12:00
parent 0c3ffbbb25
commit eb0b7f14a5
No known key found for this signature in database
GPG key ID: CBA0458B682A8544

View file

@ -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)