emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] org-clock mode-line format configuration


From: Kiwon Um
Subject: Re: [Orgmode] org-clock mode-line format configuration
Date: Wed, 27 Jan 2010 23:23:18 +0900

2010/1/27 Carsten Dominik <address@hidden>:
>
> On Jan 27, 2010, at 2:33 PM, Kiwon Um wrote:
>
>> Carsten Dominik <address@hidden> writes:
>>
>>> Hi Um,
>>>
>>> not, the result value has to be a string.
>>>
>>
>> Hi Carsten, hmmm... If you are right, it's an easy problem as long as
>> I'm able to know the variable name containing the string for the mode
>> line at the moment, isn't it?
>
> No, you are misunderstanding.
>
> the variable org-clock-heading-function hast to be set to a function.
> A form starting with `lambda' is a function.
>
> The function needs to return a string, and that string will automatically
> end up
> in the variable `org-clock-heading', which is then used to create the string
> in the mode line.
>
> Clearer now?
>
> I had a typo in the function:
>
> (setq org-clock-heading-function
>     (lambda ()
>        (replace-regexp-in-string
>         "\\[\\[.*?\\]\\[\\(.*?\\)\\]\\]" "\\1"
>         (nth 4 (org-heading-components)))))
>

Cool! Now it's clear.
Really thanks for your kind replies. :)




reply via email to

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