emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Custom time stamps in column view
Date: Sat, 7 Dec 2019 13:44:42 +0000	[thread overview]
Message-ID: <87wob85jxy.fsf@ucl.ac.uk> (raw)
In-Reply-To: 87v9qzddke.fsf@ucl.ac.uk

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

      reply	other threads:[~2019-12-07 16:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-01 19:57 Custom time stamps in column view Fraga, Eric
2019-12-07 13:44 ` Fraga, Eric [this message]

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=87wob85jxy.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /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).