Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to have something like "Dec 15, 2011"

Emacs org-mode only lets me toggle between <11/29/13 Fri> and <2013-11-29 Fri>.

Can anyone suggest a way to do this?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I don't use org-mode myself, but M-x apropos-variable org.*time turned up a couple of likely suspects. (I tried org.*date first, but that didn't produce anything useful.)

It looks like you want to set org-display-custom-times to t and set org-time-stamp-custom-formats to the way you want them displayed.

The value of org-time-stamp-custom-formats appears to be a cons cell, where the car is the format for a date, and the cdr is the format for a date+time.

So I would try

(setq-default org-display-custom-times t)
(setq org-time-stamp-custom-formats '("<%b %e, %Y>" . "<%b %e, %Y %H:%M>"))
share|improve this answer
    
Thanks for the reply. You suggestion is being rendered as <b 21, %> for 21 November. I think it is not recognizing %b. Any fixes? –  shyamupa Dec 5 '13 at 23:16
    
@shyamupa, apparently, the <> are mandatory, or org-mode doesn't work right. I put them back in, and it seems to work. –  cjm Dec 5 '13 at 23:26
    
Fixed it! Thanks! –  shyamupa Dec 5 '13 at 23:29
    
Further experimentation shows that org-mode seems to overwrite the first & last character of your format with <>. "<%b %e, %Y>", " %b %e, %Y ", and "[%b %e, %Y]" all seem to produce <Dec 11, 2013>. –  cjm Dec 5 '13 at 23:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.