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:
Vivien Moreau 2016-02-21 06:14:50 +01:00 committed by Eivind Fonn
parent 06c35c30ab
commit 6b40d0eda2
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@
(defun org/init-org ()
(use-package org
: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
:init
(progn
@ -452,7 +452,7 @@ a Markdown buffer and use this command to convert it.
(spacemacs|define-custom-layout "@Org"
:binding "o"
:body
(find-file (first org-agenda-files))))
(find-file (first (org-agenda-files)))))
(defun org/init-toc-org ()
(use-package toc-org