[Top][All Lists]
[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 18:25:10 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Carsten Dominik <address@hidden> writes:
> On Jan 26, 2010, at 11:00 AM, Kiwon Um wrote:
>
>> Dear orgmode dev team:
>>
>> When the clock is started on an item, the item is shown on the mode
>> line. But the string on the mode line just shows the raw string of the
>> item, so sometimes it looks ugly when it contains a link.
>>
>> So I suggest to make it customizable,
>
> It is customizable, see the variable org-clock-heading-function
>
Would you please show me the function defun doing what I want? I have
no idea to how to build org-clock-heading.
>> or to vanish the link string, e.g.
>> using
>> (replace-regexp-in-string "\\[\\[.*\\]\\[\\(.*\\)\\]\\]" "\\1" str)
>
> Yes, that makes sense, I have added this. I have changed the "*" parts
> to non-greedy though, in case there are several links in the line.
>
Cool. I missed that.
(replace-regexp-in-string "\\[\\[.*?\\]\\[\\(.*?\\)\\]\\]" "\\1" s))
Kiwon Um
- [Orgmode] org-clock mode-line format configuration, Kiwon Um, 2010/01/26
- Re: [Orgmode] org-clock mode-line format configuration, Manish, 2010/01/26
- Re: [Orgmode] org-clock mode-line format configuration, Carsten Dominik, 2010/01/27
- Re: [Orgmode] org-clock mode-line format configuration,
Kiwon Um <=
- Re: [Orgmode] org-clock mode-line format configuration, Carsten Dominik, 2010/01/27
- Re: [Orgmode] org-clock mode-line format configuration, Kiwon Um, 2010/01/27
- Re: [Orgmode] org-clock mode-line format configuration, Carsten Dominik, 2010/01/27
- Re: [Orgmode] org-clock mode-line format configuration, Kiwon Um, 2010/01/27
- Re: [Orgmode] org-clock mode-line format configuration, Carsten Dominik, 2010/01/27
- Re: [Orgmode] org-clock mode-line format configuration, Kiwon Um, 2010/01/27