emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Customizing Timestamps in html Export.


From: Nicolas Goaziou
Subject: Re: [O] Customizing Timestamps in html Export.
Date: Tue, 02 Dec 2014 10:45:40 +0100

Hello,

Ian Barton <address@hidden> writes:

> However, the using the minimal.el:
>
> #+begin_src emacs-lisp
> ;; activate debugging
> (setq debug-on-error t)
> (setq debug-on-quit t)
>
> (add-to-list 'load-path "~/.emacs.d/src/lisp")
> (require 'org)
>
> ;; The following lines are always needed.  Choose your own keys.
>   (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
>   (global-set-key "\C-cl" 'org-store-link)
>   (global-set-key "\C-ca" 'org-agenda)
>   (global-set-key "\C-cb" 'org-iswitchb)
>
> (setq org-html-metadata-timestamp-format "%a %d %B %Y ")
> (setq org-time-stamp-custom-formats  "%a %d %B %Y ")
>
> #+end_src
>
> and the following test.org:
>
> #+begin_src
>
> The date: [2014-12-01 Mon]
>
> #+end_src
>
> gives the following result with C-c C-x C-t
>
> The date: [2014-12-01 Mon]
>
> Since nobody else has reported this, I imagine it's a case of user 
> stupidity, rather than a bug.
>
> Can anyone point out my error?

You need to set `org-display-custom-times' to a non-nil value, too. If
you need this feature only during export, you could use a BIND keyword:

  #+BIND: org-display-custom-times t

assuming `org-export-allow-bind-keywords' is also non-nil.


Regards,

-- 
Nicolas Goaziou



reply via email to

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