lang/org: set org-clock variables sooner

This commit is contained in:
Henrik Lissner 2018-05-25 00:51:34 +02:00
parent fd87a0bd9e
commit 5472cd4a37
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -346,10 +346,11 @@ between the two."
(def-package! org-clock (def-package! org-clock
:commands org-clock-save :commands org-clock-save
:hook (org-mode . org-clock-load) :hook (org-mode . org-clock-load)
:config :init
(setq org-clock-persist 'history (setq org-clock-persist 'history
org-clock-persist-file (concat doom-etc-dir "org-clock-save.el")) org-clock-persist-file (concat doom-etc-dir "org-clock-save.el"))
(add-hook 'kill-emacs-hook 'org-clock-save)) :config
(add-hook 'kill-emacs-hook #'org-clock-save))
;; ;;
(when (featurep 'org) (when (featurep 'org)