From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: how to integrate org-pomodoro into my daily schedule Date: Mon, 30 Oct 2017 10:42:48 +0000 Message-ID: <874lqghq6v.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1509360222 21312 195.159.176.226 (30 Oct 2017 10:43:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Oct 2017 10:43:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) To: help-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 30 11:43:37 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e97XY-0004gN-9g for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Oct 2017 11:43:32 +0100 Original-Received: from localhost ([::1]:39773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e97Xf-0006Nd-DT for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Oct 2017 06:43:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e97X5-0006M7-Ks for help-gnu-emacs@gnu.org; Mon, 30 Oct 2017 06:43:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e97X2-0002S3-Gf for help-gnu-emacs@gnu.org; Mon, 30 Oct 2017 06:43:03 -0400 Original-Received: from avasout02.plus.net ([212.159.14.17]:53951 helo=avasout02.plus.net.plus.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e97X2-0002QA-AN for help-gnu-emacs@gnu.org; Mon, 30 Oct 2017 06:43:00 -0400 Original-Received: from London.london ([51.7.107.43]) by smtp with ESMTPA id 97WxeJ0fCdhRw97WyeDDs3; Mon, 30 Oct 2017 10:42:58 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=bN1mGL2Z c=1 sm=1 tr=0 a=fyVFNeTDe8o8k/RiXfvDaQ==:117 a=fyVFNeTDe8o8k/RiXfvDaQ==:17 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=bAHfVwKlAAAA:8 a=bM19xmZ8x6uolr7_UUkA:9 a=wjBIN6_ME6uxsJyw:21 a=A0MaXkaMnxLsNFEP:21 a=2-MMZ0gm_gywSEfZjUYA:9 a=ONNS8QRKHyMA:10 a=diwpeB1DDhFXqWA7J4Up:22 a=KxyM1Xthmv57RbWRIpnN:22 a=fjrkRJ71zQ2jzMzczd-K:22 X-AUTH: skimble@:2500 X-CMAE-Envelope: MS4wfE43jIobkfXxoU/Ye0Yq8kMp1Gi99Jesv8hVP3QIBCaVjrBT2BWkZxqcxUgELzPW0ovLxONLk4d3tw95oMTpFYWU6Hfm2rx9NODsl9VQw3o37+6uhGnq s7kcWqYsKEDvyww6iDovsIJoEWwmrbdwLChrTWSWzmjbt3KULtlysPlFLeoKnRFp5xru9bhWCrp71A== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 212.159.14.17 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114700 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Whilst using emacs and org-mode I regularly clock in and out using this cod= e - =2D-8<---------------cut here---------------start------------->8--- #+begin_src emacs-lisp (defun org-clockin () (when (and (string=3D org-state "IN-PROGRESS") (string=3D org-last-state "TODO") (not (string=3D 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=3D org-state "TODO") (string=3D org-last-state "IN-PROGRESS") (not (string=3D org-last-state org-state))) (org-clock-out))) (add-hook 'org-after-todo-state-change-hook 'org-clockout) #+end_src =2D-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. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk=20=20 Debian 9.2, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAln3AikACgkQNoGAGQr4 g1vvABAAtGzISDqZnYr/6iYdnSAzO0sZNBWaAjQAoVbzkDtpCoUTuFCF7xx2KxBe YyZqqAeUSrLdYFVo8uzlDoTQ1QDuTVEtfi8Kd/FkYorIzFCQ0ACFUuXijKjD8MRc njkMXG0A8ShPk8uzGXAnqjE0UNs/5ttf2UAg0cSd9Av2BR3hfMYPoWQhCYCFmJs+ 23PAcMzAk+it53J7X6IRct7owUscaS60y38FwWOYAPa/C3txffeT8g3VMrhnR6vI NLZsM1ZhFcm7BulLxqF4M7VWkmmwS/s66Zqyl+OoUwlfqQypCFlhVWFHv1UuIE3a glETLZzr1h0Wxx7rBYdDNUqonxDklP/2eSNRhIC0NL9A9tF7JZoMTx6RYBFsbCx2 MoBZPLuWb6S6lSqs3WG6jwPQE9k7IOHeQAItcvVs4VMz+jniTbpAFvZ3dQE5AfsD L60t+T3VxX6J0XxEGnZeBFbKigx6qY4Xz+HYJADUFo5zPGIGMKwbeKmLyX/U2Ck1 ofaxJArSA2nAEgynOND8z3nzYvHMxU85otYGHgT7d4tA4kuk03aIvBquJaeENFbY eNXCbHE+kLPNwxj4YwnT5GA/WDK/4Ig0m7WSSIAHcTFii62z3THPXIbFH3V9bX9P Z/W57UIrhqCJDSYX8qa9Qt8a4JkfZcLSGu0Puz4SwaKhtM4uDdw= =YdRW -----END PGP SIGNATURE----- --=-=-=--