[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] modify postamble in html export

From: Eric Abrahamsen
Subject: Re: [O] modify postamble in html export
Date: Sat, 21 Sep 2013 12:23:27 +0800
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

pw <address@hidden> writes:

>> You can override the whole thing by re-defining the `org-html-postable'
>> variable. Set it to a function which returns the string you want:
>> (defun my-org-html-postamble ()
>>   (format "Last update : %s" (format-time-string "%d %b %Y")))
>> (setq org-html-postamble 'my-org-html-postamble)
>> I didn't test that, but something like that ought to work.
> Thanks!
> I tried to paste your code into my .emacs and I received the following
> error when publishing :
> "org-html--build-pre/postamble: Wrong number of arguments: (lambda nil
> (format "Last update : %s" (format-time-string "%d %b %Y"))), 1"

Whoops, that's what I get for posting untested code... As Nicholas
points out the function should take an argument, but in your simplest
case you can ignore it:

(defun my-org-html-postamble (plist)
  (format "Last update : %s" (format-time-string "%d %b %Y")))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]