org: fix layout when org-agenda-files isn't a list
The org-agenda-files variable can be the name of a directory or a file.
This commit is contained in:
parent
06c35c30ab
commit
6b40d0eda2
|
@ -86,7 +86,7 @@
|
||||||
(defun org/init-org ()
|
(defun org/init-org ()
|
||||||
(use-package org
|
(use-package org
|
||||||
:mode ("\\.org$" . org-mode)
|
:mode ("\\.org$" . org-mode)
|
||||||
:commands (org-clock-out org-occur-in-agenda-files)
|
:commands (org-clock-out org-occur-in-agenda-files org-agenda-files)
|
||||||
:defer t
|
:defer t
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
|
@ -452,7 +452,7 @@ a Markdown buffer and use this command to convert it.
|
||||||
(spacemacs|define-custom-layout "@Org"
|
(spacemacs|define-custom-layout "@Org"
|
||||||
:binding "o"
|
:binding "o"
|
||||||
:body
|
:body
|
||||||
(find-file (first org-agenda-files))))
|
(find-file (first (org-agenda-files)))))
|
||||||
|
|
||||||
(defun org/init-toc-org ()
|
(defun org/init-toc-org ()
|
||||||
(use-package toc-org
|
(use-package toc-org
|
||||||
|
|
Loading…
Reference in a new issue