Do not call org-agenda-files if org-mode is already loaded (#15908)
This commit is contained in:
parent
2c54914370
commit
91e2a4f396
|
@ -1294,9 +1294,12 @@ LIST-SIZE is specified in `dotspacemacs-startup-lists' for recent entries."
|
||||||
org-agenda-files
|
org-agenda-files
|
||||||
;; but if it's a string, it must be file where the list
|
;; but if it's a string, it must be file where the list
|
||||||
;; of agenda files are stored in that file and we have
|
;; of agenda files are stored in that file and we have
|
||||||
;;to load `org-agenda' to process the list.
|
;; to load `org-agenda' to process the list. If org is
|
||||||
(when (y-or-n-p "`org-agenda-files' is a string and \
|
;; already loaded, then we assume that the user has
|
||||||
not a list. Load `org' and continue?")
|
;; already called org-agenda-files.
|
||||||
|
(when (and (not (featurep 'org))
|
||||||
|
(y-or-n-p "`org-agenda-files' is a string and \
|
||||||
|
not a list. Load `org' and continue?"))
|
||||||
(require 'org)
|
(require 'org)
|
||||||
(org-agenda-files))))))
|
(org-agenda-files))))))
|
||||||
(mapcar #'expand-file-name files)))
|
(mapcar #'expand-file-name files)))
|
||||||
|
|
Loading…
Reference in New Issue