[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Question about org-publish-project-alist
From: |
Nick Dokos |
Subject: |
Re: [O] Question about org-publish-project-alist |
Date: |
Tue, 14 Apr 2015 09:10:55 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Thomas Moyer <address@hidden> writes:
> 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
> :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
>
You need to use backquote instead of quote and commas wherevern an "inner"
variable needs to be evaluated. See
(info "(elisp) Backquote")
Nick