From: Borbus <borbus@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Clocking time in frame title bar
Date: Thu, 23 Feb 2012 19:42:05 +0000 [thread overview]
Message-ID: <4F46968D.4020401@gmail.com> (raw)
In-Reply-To: <4F46892E.9070907@gmail.com>
Well I just went ahead and wrote the hack anyway and it seems to work
for me, here is what I did:
;; show clock and timer stuff in the frame title
(defvar plain-frame-title-format frame-title-format)
(defun clock-in-frame-title ()
(if (org-clocking-p)
(setq frame-title-format (list (concat
(car plain-frame-title-format)
" :: Clocked in: "
(org-clock-get-clock-string)
" :: Pomodoro:"
org-timer-mode-line-string)))
(setq frame-title-format plain-frame-title-format)))
(run-at-time t 1 'clock-in-frame-title)
(add-hook 'org-clock-in-hook 'clock-in-frame-title)
(add-hook 'org-clock-out-hook 'clock-in-frame-title)
(add-hook 'org-clock-cancel-hook 'clock-in-frame-title)
Any comments? Is run-at-time the best thing to use here? Note that I
use the Pomodoro method and use the code to start the Pomodoro that was
posted to this list previously: http://orgmode.org/worg/org-gtd-etc.html
Borbus.
prev parent reply other threads:[~2012-02-23 19:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 18:45 Clocking time in frame title bar Borbus
2012-02-23 19:42 ` Borbus [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=4F46968D.4020401@gmail.com \
--to=borbus@gmail.com \
--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).