this post was submitted on 27 Jun 2023
11 points (100.0% liked)

Emacs

1978 readers
1 users here now

Our infinitely powerful editor.

founded 5 years ago
MODERATORS
 

Hi Guys,

I was trying to make use of :clock-in property in org-capture-templates variable. I thought what it does is it clocks in the item after the capture.
But what it does for me is, it clocks in the item but immediately clocks it out, leaving a 0 minute clock entry. What is the intended use of the property?

all 3 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 3 points 2 years ago

I think I've figured it out.
:clock-in t is intended for capturing the time you spend on writing the item. So the clock starts as soon as you start writing/capturing, and ends as soon as you C-c C-c to finilize/stop-writing.
if you want the clock to keep running after finalizing, you need to use :clock-in t :clock-keep t.

[โ€“] bledley 2 points 2 years ago (1 children)

@[email protected] the way to to use this is with an org-headline or task. For example you have an org document with "*TODO Write 500 words". When you start the task 'M-x-org-clock-in' whilst your cursor is on the headline and when you finish 'M-x-org-clock-out'. You'll see a timer running in the modeline and It'll take care of the properties for you on completion.