Make xkcd's cache dir if it doesn't exist

This commit is contained in:
TEC 2021-01-15 02:39:02 +08:00
parent 444963b4d8
commit 516d3fdc8a
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 2 additions and 0 deletions

View File

@ -1984,6 +1984,8 @@ We want to set this up so it loads nicely in [[*Extra links][Extra links]].
:config
(setq xkcd-cache-dir (expand-file-name "xkcd/" doom-cache-dir)
xkcd-cache-latest (concat xkcd-cache-dir "latest"))
(unless (file-exists-p xkcd-cache-dir)
(make-directory xkcd-cache-dir))
(after! evil-snipe
(add-to-list 'evil-snipe-disabled-modes 'xkcd-mode))
:general (:states 'normal