emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Question about org-publish-project-alist


From: Marcin Borkowski
Subject: Re: [O] Question about org-publish-project-alist
Date: Tue, 14 Apr 2015 15:05:27 +0200

On 2015-04-14, at 14:51, Thomas Moyer <address@hidden> wrote:

> Is it possible (and I just have the wrong syntax) to do the following:
>
> (defvar base-dir "~/Documents/org/")
> (defvar pub-dir "~/Public/notes/")
>
> (setq org-publish-project-alist '(
>     ("org"
>         :base-directory base-dir

(setq org-publish-project-alist `(
    ("org"
        :base-directory ,base-dir

?

>         :base-extension "org"
>         :publishing-directory pub-dir
>         :recursive t
>         :publishing-function org-html-publish-to-html
>         :exclude "level-..org"
>     )
>     ("static"
>         :base-directory base-dir
>         :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
>         :publishing-directory pub-dir
>         :recursive t
>         :publishing-function org-publish-attachment
>     )
> ("project-root" :components ("org" "static")))
> )
>
> When I have the above code and I call (org-publish-project "project-root"),
> I get the following error.
>
> Wrong type argument: stringp, base-dir
>
> Thanks.
> Tom


-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]