org: fix org layout if no agenda files
This commit is contained in:
parent
98990b25bd
commit
f98a80a364
|
@ -532,4 +532,6 @@ Headline^^ Visit entry^^ Filter^^ Da
|
|||
(spacemacs|define-custom-layout "@Org"
|
||||
:binding "o"
|
||||
:body
|
||||
(find-file (first (org-agenda-files)))))
|
||||
(let ((agenda-files (org-agenda-files)))
|
||||
(when agenda-files
|
||||
(find-file (first agenda-files))))))
|
||||
|
|
Loading…
Reference in New Issue