On 2015-04-14, at 14:51, Thomas Moyer <tommo...@gmail.com> 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