From: Carsten Dominik <carsten.dominik@gmail.com>
To: Water Lin <WaterLin@ymail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Replace the string in project setting
Date: Thu, 24 Dec 2009 08:43:20 +0100 [thread overview]
Message-ID: <A67CCB21-A1EA-426C-B16C-049EFDF460C3@gmail.com> (raw)
In-Reply-To: <874onh5dcz.fsf@ymail.com>
On Dec 24, 2009, at 3:12 AM, Water Lin wrote:
>
> I set publishing project by
> ------
> (require 'org-publish)
> (setq org-publish-project-alist
> -----
>
> and I also want to embed css sheetstyle by setting
> --------
> :style "<style>...</style>"
> --------
>
> But the style is too long and I want to use a string to replace it.
>
> So I set a string by
> -------
> (setq waterstyle "<style>....</style>")
> -------
>
> and replace the :style like following:
> -------
> :style waterstyle
> -------
>
> But while I publish the project, Emacs prompts an error about this.
>
> I am not very familiar with elisp. Can I embed the style by a string
> like this?
Hi,
you need to do this:
(setq waterstyle .....)
(setq org-publish-project-alist
`((......
......
:style ,waterstyle
....)))
(note the *backquote* instead of a normal quote to quote
the value of org-publish-project-alist, and note the comma before
waterstyle to interpolate the value into the quoted list.
HTH
- Carsten
>
> Thanks
>
> Water Lin
>
> --
> Water Lin's notes and pencils: http://en.waterlin.org
> Email: WaterLin@ymail.com
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
next prev parent reply other threads:[~2009-12-24 7:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-24 2:12 Replace the string in project setting Water Lin
2009-12-24 7:43 ` Carsten Dominik [this message]
2009-12-24 9:02 ` Water Lin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A67CCB21-A1EA-426C-B16C-049EFDF460C3@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=WaterLin@ymail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.