emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: nicholas.dokos@hp.com
Cc: Matthew Lundin <mdl@imapmail.org>,
	emacs org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Move org-clock info to left in mode-line?
Date: Mon, 06 Jul 2009 13:29:06 -0500	[thread overview]
Message-ID: <87skh9zmvh.fsf@fastmail.fm> (raw)
In-Reply-To: <7883.1246902725@alphaville.usa.hp.com> (Nick Dokos's message of "Mon, 06 Jul 2009 13:52:05 -0400")

Nick Dokos <nicholas.dokos@hp.com> writes:

> Matthew Lundin <mdl@imapmail.org> wrote:
>
>> I've made some progress in understanding emacs this past year, but
>> customizing the mode-line eludes me.
>> 
>> When I clock into an item in org-mode, the clock information is always
>> at the extreme right of the mode line --- and thus unable to be seen
>> unless I make my emacs window full screen.
>> 
>> (Most of my buffers have a ton of minor modes, which are all listed in
>> the mode line and push everything else out of sight).
>> 
>> Interestingly, if I have other modes contributing to the mode line, the
>> org-mode-line-string is always placed at the end of the
>> global-mode-string:
>> 
>> ,----
>> | global-mode-string is a variable defined in `C source code'.
>> | Its value is 
>> | ((t jabber-activity-mode-string)
>> |  "" appt-mode-string display-time-string org-mode-line-string)
>> `----
>> 
>> I would be most grateful for any tips on how I might move the org-clock
>> information farther to the left in the mode line.
>> 
>
> I think the variable you want is ``mode-line-format''.

Thanks! I was able to move the global-mode-string farther up in
the default-mode-line-format variable. Now if only I could get the
org-mode-line-string as the first entry in the global-mode-string.

Upon further reflection, I decided I would prefer the following behavior:

 - When I clock into an item, a header line appears with the
   org-mode-line-string -- i.e., the clock information.

 - When I clock out of an item, the header line disappears (i.e.,
   header-line-format is set to nil). 

I'll see if I can cook something up using the org-clock hooks.

Best,
Matt

  reply	other threads:[~2009-07-06 18:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06 17:09 Move org-clock info to left in mode-line? Matthew Lundin
2009-07-06 17:52 ` Nick Dokos
2009-07-06 18:29   ` Matthew Lundin [this message]
2009-07-06 18:56     ` Matthew Lundin

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=87skh9zmvh.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /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).