emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Ian Barton <lists@wilkesley.net>
Cc: ian@manor-farm.org, emacs-orgmode@gnu.org
Subject: Re: Customizing Timestamps in html Export.
Date: Tue, 02 Dec 2014 10:45:40 +0100	[thread overview]
Message-ID: <87tx1el70b.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <547C5AF9.3060302@wilkesley.net> (Ian Barton's message of "Mon, 01 Dec 2014 12:11:37 +0000")

Hello,

Ian Barton <lists@wilkesley.net> 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	other threads:[~2014-12-02  9:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-26 11:23 Customizing Timestamps in html Export Ian Barton
2014-12-01 12:11 ` Ian Barton
2014-12-02  9:45   ` Nicolas Goaziou [this message]
2014-12-03  9:03     ` Ian Barton
2014-12-03 16:20       ` Nicolas Goaziou

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=87tx1el70b.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=ian@manor-farm.org \
    --cc=lists@wilkesley.net \
    /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).