[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)))
(org-clock-in)))
(add-hook 'org-after-todo-state-change-hook 'org-clockin)
#+end_src
[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)))
(org-clock-out)))
(add-hook 'org-after-todo-state-change-hook 'org-clockout)
#+end_src
--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?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.2, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.1
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- how to integrate org-pomodoro into my daily schedule,
Sharon Kimble <=