[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom time stamps in column view
From: |
Fraga, Eric |
Subject: |
Re: Custom time stamps in column view |
Date: |
Sat, 7 Dec 2019 13:44:42 +0000 |
On Sunday, 1 Dec 2019 at 19:57, Fraga, Eric wrote:
> I guess I'm making a feature request: to be able to use custom time
> display in column views. Would this be possible? (or, knowing me, it
> might already be possible so would somebody tell me how?)
I found some time today to explore and have managed to answer my own
question. Unsurprisingly, org has what I need!
Using the answer given to a related question on StackExchange [1], I
came up with this simple function:
#+begin_src emacs-lisp
(defun esf/todo-column-display-filter (column-title value)
(when (and value (not (string= value ""))
(or (string= column-title "SCHEDULED")
(string= column-title "DEADLINE")))
(format-time-string "%e %b %A" (org-time-string-to-time value))))
(setq-local org-columns-modify-value-for-display-function
#'esf/todo-column-display-filter)
#+end_src
Makes my column view much easier to read for seeing my todo list!
Thank you,
eric
Footnotes:
[1]
https://emacs.stackexchange.com/questions/54027/org-column-view-with-date-calculations
--
Eric S Fraga via Emacs 27.0.50, Org release_9.3-34-g2eee3c