From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Move org-clock info to left in mode-line? Date: Mon, 06 Jul 2009 13:29:06 -0500 Message-ID: <87skh9zmvh.fsf@fastmail.fm> References: <87vdm5sppf.fsf@fastmail.fm> <7883.1246902725@alphaville.usa.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNsu6-0002o3-2t for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 14:27:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNsu1-0002ld-1L for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 14:27:01 -0400 Received: from [199.232.76.173] (port=50913 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNsu0-0002lU-QR for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 14:26:56 -0400 Received: from mx20.gnu.org ([199.232.41.8]:20341) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MNsu0-0002KY-D1 for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 14:26:56 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNstz-000085-J0 for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 14:26:55 -0400 In-Reply-To: <7883.1246902725@alphaville.usa.hp.com> (Nick Dokos's message of "Mon, 06 Jul 2009 13:52:05 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Matthew Lundin , emacs org-mode mailing list Nick Dokos writes: > Matthew Lundin 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