org-mode: Fix cache loading order
This commit is contained in:
parent
19a383d9f4
commit
7014675226
|
@ -4882,7 +4882,7 @@ The following commands are available:
|
||||||
(org-element-cache-reset)
|
(org-element-cache-reset)
|
||||||
(when (and org-element-cache-persistent
|
(when (and org-element-cache-persistent
|
||||||
org-element-use-cache)
|
org-element-use-cache)
|
||||||
(org-persist-read 'org-element--cache (current-buffer)))
|
(org-persist-load 'org-element--cache (current-buffer) t))
|
||||||
;; Initialize macros templates.
|
;; Initialize macros templates.
|
||||||
(org-macro-initialize-templates)
|
(org-macro-initialize-templates)
|
||||||
;; Initialize radio targets.
|
;; Initialize radio targets.
|
||||||
|
@ -4894,11 +4894,6 @@ The following commands are available:
|
||||||
(org-setup-filling)
|
(org-setup-filling)
|
||||||
;; Comments.
|
;; Comments.
|
||||||
(org-setup-comments-handling)
|
(org-setup-comments-handling)
|
||||||
;; Initialize cache.
|
|
||||||
(org-element-cache-reset)
|
|
||||||
(when (and org-element-cache-persistent
|
|
||||||
org-element-use-cache)
|
|
||||||
(org-persist-load 'org-element--cache (current-buffer) t))
|
|
||||||
;; Beginning/end of defun
|
;; Beginning/end of defun
|
||||||
(setq-local beginning-of-defun-function 'org-backward-element)
|
(setq-local beginning-of-defun-function 'org-backward-element)
|
||||||
(setq-local end-of-defun-function
|
(setq-local end-of-defun-function
|
||||||
|
|
Loading…
Reference in New Issue