1

When I insert timestamps, even if by using the calendar, org inserts something like <2016-10-20 Thu>. However, I sometimes have to use machines with a different locale, which inserts <2016-10-20 cs>.

This, of course, I can parse, but it makes my (otherwise fully English) Org files look inconsistent. Given that Org doesn't parse the day name and inserts it for pure readability reasons[citation needed], is there a way to prevent Org inserting it at all?

3

Yes. You can customize the variable org-time-stamp-custom-formats and remove the %a from the default. Note you also need to set the org-display-custom-times variable to something other than nil.

  • I don’t really want to mess with org-display-custom-times (and it seems I don’t really have to). I simply removed existing day name abbreviations with a regex-replace, and set my org-time-stamp-formats – GergelyPolonkai Oct 21 '16 at 13:43
1

Although a custom format suggested by @icarus seems to be a good idea, I generally like the standard Org-mode format of %Y-%m-%d and %Y-%m-%d %H:%M (without that pesky %a part). As the only thing I wanted to get rid of is the name of the day, I ended up setting org-time-stamp-formats (I use use-package; if you don’t use such package managers, this setq should go into after-init-hook; otherwise org.el’s defvar will overwrite your preference.)

(use-package org
  :config
  (setq org-time-stamp-formats '("<%Y-%m-%d>" . "<%Y-%m-%d %H:%M>"))

Note: I also found out from the docs that I can update the day name C-c C-c if it is wrong, but that’s just an overkill for my situation.

  • The org-time-stamp-formats is declared with defconst in my version (24.5.1) of emacs, which is why I didn't suggest changing it. – icarus Oct 21 '16 at 14:19
  • Good point, I haven’t checked that (and I guess that’s why it got overwritten if I put it under :init instead of :config). I will experiment with org-time-stamp-custom-formats, then. – GergelyPolonkai Oct 21 '16 at 14:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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