Catch require org-journal before clearing cache
This commit is contained in:
parent
c21d6f90f4
commit
9525d51987
4
init.el
4
init.el
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue