Hi,
On 12/20/2015 11:06 AM, Pillow Kuda Sai wrote:
> Nicolas Goaziou nicolasgoaziou.fr> writes:
>
>> You may try
>>
>> (org-file-contents "~/Blog/html/preamble.html")
>
> That worked! Should have figured out that insert-file-contents does not
> return a string. Thanks for the help Nicolas!
Hello,
Pillow Kuda Sai writes:
> (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
Nicolas Goaziou nicolasgoaziou.fr> writes:
> You may try
>
> (org-file-contents "~/Blog/html/preamble.html")
That worked! Should have figured out that insert-file-contents does not
return a string. Thanks for the help Nicolas!
Happy holidays,
pillow.
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
Hi,
I only use a function name, e.g.
(defun my-html-preamble (options)
"my preamble")
and
(setq org-publish-project-alist
'(
("org-notes"
:base-directory "~/org/"
:base-extension "org"
:publishing-directory "~/public_html/"
:recursive t
My setup:
;;; Minimal setup to load latest 'org-mode'
;; activate debugging
(setq debug-on-error t
debug-on-signal nil
debug-on-quit nil)
;; add latest org-mode to load path
(add-to-list 'load-path (expand-file-name "~/.emacs.d/elpa/org-20151123/"))
(add-to-list 'load-path