Catch require org-journal before clearing cache

This commit is contained in:
Evie Litherland-Smith 2024-04-22 08:21:17 +01:00
parent c21d6f90f4
commit 9525d51987

View file

@ -41,8 +41,8 @@
"Run shell command `git-sync-all' asynchronously."
(interactive)
(async-shell-command "git-sync-all" "*git-sync-all*" "*git-sync-errors*")
(require 'org-journal)
(org-journal-invalidate-cache))
(when (require 'org-journal nil :noerror)
(org-journal-invalidate-cache)))
(keymap-global-set "C-c g s" #'my/git-sync-all)
(set-default-coding-systems 'utf-8)