In general all timestamps in Org-mode appears as [YYYY-MM-DD Day]
. I have one file (buffer) where I would like the format to be different. Either just [YYYY-MM-DD]
or [YYYY-MM]
. How do I tell Org-mode to use a custom format for this one buffer?
I'd be happy to have it automatic, which I think means something like:
# -*- coding: utf-8; eval: (org-time-stamp-custom-formats '("<%Y-%m>")); -*-
As the first line, or have a code block that I evaluate with C-c C-c
each time I work in that buffer.
#+BEGIN_SRC emacs-lisp
(make-local-variable 'org-time-stamp-custom-formats)
(make-local-variable 'org-display-custom-times)
(setq org-time-stamp-custom-formats '("<%Y-%m>"))
(setq-default org-display-custom-times t)
#+END_SRC