From: Tom Weissmann <trmsw@yahoo.co.uk>
To: emacs-orgmode@gnu.org
Subject: Re: Feature request: custom clock headings
Date: Wed, 28 Nov 2007 18:51:59 +0000 (UTC) [thread overview]
Message-ID: <loom.20071128T185122-300@post.gmane.org> (raw)
In-Reply-To: 87d4tuxutu.fsf@bzg.ath.cx
Bastien <bzg <at> altern.org> writes:
> Looks nice. Can you share your advice on this list? Thanks!
Yes, of course:
(defvar org-custom-clock-heading nil
"Function that returns a custom \(propertised\) value for the
`org-clock-heading' variable.
Called with point at the new clock")
(defadvice org-clock-in (after org-clock-in-custom-modeline activate)
"Customise the modeline
NB this feature has been requested and may be standard in future versions of
Org-mode"
(when org-custom-clock-heading
(let ((custom-heading (funcall org-custom-clock-heading)))
(when custom-heading
(setq org-clock-heading custom-heading)
(org-update-mode-line)))))
prev parent reply other threads:[~2007-11-28 18:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-26 12:29 Feature request: custom clock headings Tom Weissmann
2007-11-27 15:15 ` Bastien
2007-11-27 17:39 ` Tom Weissmann
2007-11-28 15:18 ` Bastien
2007-11-28 18:51 ` Tom Weissmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20071128T185122-300@post.gmane.org \
--to=trmsw@yahoo.co.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).