From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Move Currently clocked in task to left on modeline Date: Tue, 3 Sep 2019 22:53:11 -0500 Message-ID: References: <875zntod0f.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007ee71f0591b22502" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53020) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5MMK-0000Pr-Jb for emacs-orgmode@gnu.org; Tue, 03 Sep 2019 23:53:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5MMJ-0001iC-8K for emacs-orgmode@gnu.org; Tue, 03 Sep 2019 23:53:28 -0400 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]:41401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5MMH-0001g9-6k for emacs-orgmode@gnu.org; Tue, 03 Sep 2019 23:53:25 -0400 Received: by mail-io1-xd43.google.com with SMTP id w15so1199477iol.8 for ; Tue, 03 Sep 2019 20:53:24 -0700 (PDT) In-Reply-To: <875zntod0f.fsf@alphaville.usersys.redhat.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nick Dokos Cc: emacs-orgmode --0000000000007ee71f0591b22502 Content-Type: text/plain; charset="UTF-8" Thanks Nick, Anyone else, I would like to hear how you can keep the currently clocked task in plain site - I use MacOS and Linux, so if there's any OS-specific status software that you recommend let me know. Thanks, --Nate On Mon, Jul 22, 2019 at 6:39 PM Nick Dokos wrote: > Nathan Neff 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' > exclusively. > > 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. > > -- > Nick > > "There are only two hard problems in computer science: cache > invalidation, naming things, and off-by-one errors." -Martin Fowler > > > --0000000000007ee71f0591b22502 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Nick,

Anyone else, I would like = to hear how you can keep the currently clocked
task in plain site= - I use MacOS and Linux, so if there's any OS-specific
statu= s software that you recommend let me know.

Thanks,=
--Nate


=
On Mon, Jul 22, 2019 at 6:39 PM Nick = Dokos <ndokos@gmail.com> wrot= e:
Nathan Neff <nathan.neff@gmail.com> 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
=C2=A0 string carefully.

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

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

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

- The rest of the org mode code mucks around with `org-mode-line-string'= ;
=C2=A0 exclusively.

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.

--
Nick

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

--0000000000007ee71f0591b22502--