[Top][All Lists]

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

how to integrate org-pomodoro into my daily schedule

From: Sharon Kimble
Subject: how to integrate org-pomodoro into my daily schedule
Date: Mon, 30 Oct 2017 10:42:48 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Whilst using emacs and org-mode I regularly clock in and out using this code -

--8<---------------cut here---------------start------------->8---
#+begin_src emacs-lisp
(defun org-clockin ()
  (when (and (string= org-state "IN-PROGRESS")
             (string= org-last-state "TODO")
       (not (string= org-last-state org-state)))

(add-hook 'org-after-todo-state-change-hook 'org-clockin)
[2016-04-20 Wed 11:56]
[2017-01-17 Tue 11:49]

#+begin_src emacs-lisp
(defun org-clockout ()
  (when (and (string= org-state "TODO")
             (string= org-last-state "IN-PROGRESS")
       (not (string= org-last-state org-state)))

(add-hook 'org-after-todo-state-change-hook 'org-clockout)
--8<---------------cut here---------------end--------------->8---

I now want to auto-log in to "org-pomodoro" when I 'org-clockin' and
obviously auto-log out when I 'org-clockout' but how please?

A taste of linux =
TGmeds =
DrugFacts =  
Debian 9.2, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.1

Attachment: signature.asc
Description: PGP signature

reply via email to

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