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: Carsten Dominik
Subject: Re: [Orgmode] org-clock mode-line format configuration
Date: Wed, 27 Jan 2010 14:22:14 +0100

Hi Um,

not, the result value has to be a string.

- Carsten

On Jan 27, 2010, at 2:12 PM, Kiwon Um wrote:

Carsten Dominik <address@hidden> writes:

On Jan 27, 2010, at 10:25 AM, Kiwon Um wrote:

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.

Untested:

(setq org-clock-heading-function
     (lambda ()
        (replace-regexp-in-string
         "\\[\\[.*?\\]\\[\\(.*?\\)\\]\\]" "\\1"
         (nth 4 org-heading-components))))


This code doesn't work. According to the documentation for the variable org-clock-heading-function, the result should be org-clock-heading, not
a string.

Kiwon Um

- Carsten







reply via email to

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