From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuri Goncharov Subject: Re: modeline clock string Date: Mon, 12 Apr 2010 09:38:15 +0400 Message-ID: <20100412093815.207451b1@n14> References: <20100409133036.49e89b46@n14> <20100409101801.GA22973@taupan.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1CLj-0000ja-En for emacs-orgmode@gnu.org; Mon, 12 Apr 2010 01:38:19 -0400 Received: from [140.186.70.92] (port=46727 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1CLh-0000jE-Rj for emacs-orgmode@gnu.org; Mon, 12 Apr 2010 01:38:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1CLe-0006Po-34 for emacs-orgmode@gnu.org; Mon, 12 Apr 2010 01:38:17 -0400 Received: from mail.highlink.ru ([91.204.68.10]:42160 helo=highlink.ru) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1CLd-0006Oh-QO for emacs-orgmode@gnu.org; Mon, 12 Apr 2010 01:38:14 -0400 In-Reply-To: <20100409101801.GA22973@taupan.ath.cx> 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: emacs-orgmode@gnu.org > Yuri Goncharov schrieb: > > I use xmonad with xmobar at my desktop. I'd like to add clock > > string from mode line to xmobar. Is there way to save it to > > file every time when update mode line? > > > ---Zitatende--- > > You can find information on various subjects with M-x apropos but it's > sometimes hard to find the right keyword. I emacs, certain functions > are called when certain events occur, those functions are called > hooks. I found display-time-hook by doing M-x aproposhook > and then searching for status (no result) and update (which yielded > display-time-hook). > > See documentation of variable display-time-hook Thanks to answer! I need some more help, because my knowledge of lisp too poor. I found two hooks like I need org-clock-in-hook and org-clock-out-hook. Function org-clock-get-clock-string returns string that is showing in mode line. I cant figure how to write it in file. Apologies to my english. -- Yuri Goncharov system administrator Highlink Ltd. St-Peterburg, Russia +7 812 3341212 http://www.hl.ru