diff --git a/init.el b/init.el index 96d4abf..ce4df40 100644 --- a/init.el +++ b/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)