emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Antoine Levitt <antoine.levitt@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Custom time display in mode-line
Date: Tue, 01 May 2012 20:05:51 +0200	[thread overview]
Message-ID: <87397jydxc.fsf@gmail.com> (raw)
In-Reply-To: <87mx5rdcig.fsf@gnu.org> (Bastien's message of "Tue, 01 May 2012 19:41:59 +0200")

Thanks for answering,

01/05/12 19:41, Bastien
> Antoine Levitt <antoine.levitt@gmail.com> writes:
>> Ideally, org-clock-modeline-total would be obsoleted and replaced by a
>> org-clock-modeline-format that'd get passed to format-spec.
> Please suggest the docstring for `org-clock-modeline-format'.  This 
> will give us a stable basis to work on.  
> At this stage, I don't understand clearly enough what is buggy about
> `org-clock-modeline-total'.

It's not buggy, it's just not customizable enough. I'm very sensitive
about what goes into my modeline. (and apparently I'm not alone)

I have in mind something like mode-line-format. So for instance, the
docstring would be something like:

"String containing a template for displaying mode line when clock is
active. The following %-constructs will be replaced:
%n -- the name of the task
%t -- time clocked into this task today
%c -- time clocked in the current instance of the clock
%a -- all time clocked for this task"

Plus there should probably be stuff about repeats and effort that I
don't understand because I don't use them.

Other emacs packages (for instance, gnus via gnus-group-line-format and
such variables) allow pretty much unlimited customization of these
format strings, so it makes sense that org does too.

But I'm realizing that even that is not sufficient for what I want. What
I really want is complete lisp control, with access to the time
clocked. For instance, I'd like to be able to display stuff like "Task1
: 00:24 today, 04:13 this week". Maybe a refactoring with more options
to org-clock-get-clocked-time (for instance, accepting the same :block
options as the clocktable) would be a good idea?

      reply	other threads:[~2012-05-01 18:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-17 10:50 Custom time display in mode-line Daniel Clemente
2012-05-01 14:46 ` Antoine Levitt
2012-05-01 17:41   ` Bastien
2012-05-01 18:05     ` Antoine Levitt [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:

  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=87397jydxc.fsf@gmail.com \
    --to=antoine.levitt@gmail.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \


* 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


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).