From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Question about org-publish-project-alist
Date: Tue, 14 Apr 2015 09:10:55 -0400 [thread overview]
Message-ID: <878uduj1nk.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: CAJMnJ1UOGw5z7MD0ci9_-FM4De_-9rpQ0cw4xT98D69UefTiLQ@mail.gmail.com
Thomas Moyer <tommoyer@gmail.com> 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
next prev parent reply other threads:[~2015-04-14 13:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-14 12:51 Question about org-publish-project-alist Thomas Moyer
2015-04-14 13:05 ` Marcin Borkowski
2015-04-14 13:10 ` Nick Dokos [this message]
2015-04-14 13:38 ` Feng Shu
2015-04-15 11:20 ` Thomas Moyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878uduj1nk.fsf@alphaville.usersys.redhat.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).