emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Pillow Kuda Sai <pillow.kuda.sai@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: html-preamble doesn't work with a function [8.3.2 (8.3.2-39-gd537a3-elpa <at> /home/pillow/.emacs.d/elpa/org-20151123/)]
Date: Sat, 19 Dec 2015 16:43:13 +0000 (UTC)	[thread overview]
Message-ID: <loom.20151219T173210-475@post.gmane.org> (raw)
In-Reply-To: 56701218.6080800@roklein.de

Hi Robert,

Thanks for the reply but my end goal is to insert the contents of another 
file as the preamble. Ultimately, I want something like this:

(insert-file-contents "~/Blog/html/preamble.html")

To be inserted as the preamble.

Your example works unmodified but once I try to insert the contents of my 
preamble.html it doesn't get included.

I tried:

(defun my-html-preamble (options)
  (insert-file-contents "~/Blog/html/preamble.html"))

but this does not include my preamble.html.

As far as I could tell from the documentation :html-preamble should accept 
any function that returns a string but so far no luck.

Kind regards,

pillow.

  reply	other threads:[~2015-12-19 16:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-12 19:26 Bug: html-preamble doesn't work with a function [8.3.2 (8.3.2-39-gd537a3-elpa @ /home/pillow/.emacs.d/elpa/org-20151123/)] Pillow Kuda Sai
2015-12-15 13:14 ` Robert Klein
2015-12-19 16:43   ` Pillow Kuda Sai [this message]
2015-12-20  9:12     ` Bug: html-preamble doesn't work with a function [8.3.2 (8.3.2-39-gd537a3-elpa <at> /home/pillow/.emacs.d/elpa/org-20151123/)] Nicolas Goaziou
2015-12-20 10:06       ` Bug: html-preamble doesn't work with a function [8.3.2 (8.3.2-39-gd537a3-elpa<at> /home/pillow/.emacs.d/elpa/org-20151123/)] Pillow Kuda Sai
2015-12-21  1:05         ` Robert Klein

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=loom.20151219T173210-475@post.gmane.org \
    --to=pillow.kuda.sai@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).