[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Move Currently clocked in task to left on modeline

From: Nick Dokos
Subject: Re: [O] Move Currently clocked in task to left on modeline
Date: Mon, 22 Jul 2019 19:39:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Nathan Neff <address@hidden> writes:

> Hello all,
> How can I move the currently clocked task to be on the left side
> of my modeline in emacs?

The way the information ends up in the mode line is a bit convoluted:

- The main variable is `mode-line-format': you should read its doc
  string carefully.

- `mode-line-format' includes the variable `mode-line-misc-info'
  towards the end.

- `mode-line-misc-info' includes the variable `global-mode-string'
  (in a somewhat peculiar way that I don't quite understand).

- `org-clock-in', `org-clock-out' and `org-clock-cancel' affect the
  mode line by modifying the `global-mode-string' variable to append
  or delete `org-mode-line-string' to/from it and then forcing a
  mode-line update with (drum roll) `force-mode-line-update'.

- The rest of the org mode code mucks around with `org-mode-line-string'

In short, there is no way to change the position of the currently
clocked task without rewriting code. You might be able to move
*all* of the org information by modifying an earlier mode-line
component (rather than `global-mode-string' which is part of the
final component). But it would not be trivial.


"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler

reply via email to

[Prev in Thread] Current Thread [Next in Thread]