Steinar Bang <s...@dod.no> writes:

>>>>>> Steinar Bang <s...@dod.no>:
>>>>>> Olaf Dietsche <olaf+list.orgm...@olafdietsche.de>:
>>> [snip!]
>>>> You can also set org-clock-into-drawer to a string (e.g. "CLOCKS"),
>>>> then this string is used instead of "LOGBOOK".
>
>> Actually I tried doing it, but since the variable wasn't available, I
>> thought I needed a newer version of org-mode, than the one that comes
>> with emacs 23.
>
>> But it turns out that I just needed to load-library `org-clock' before
>> I could customize the variable, and then set to to "CLOCKS" (without
>> the quotes).
>
> And when clocking in on an item, a ":CLOCKS:" drawer is created under
> that item.
>
> However the "CLOCKS" drawer doesn't behave like a real drawer on emacs
> 23.2 on Windows:
>  - The ":CLOCKS:..." string is plain black, and not the purple of the
>    :LOGBOOK: drawer (and presumably other drawers)
>  - Pressing `TAB' doesn't open and close the drawer
>  - Closing and reopening the item, shows the contents of the drawer, but
>    the drawer can't be collapsed with `TAB'
>
> I tried installing org-mode 7.7 on the machine, but the "CLOCKS"
> behaviour was the same there.
>
> Anyone have any idea how to fix this?

Unfortunately, back then I suggested the name CLOCKS. But the default
clocks drawer name is CLOCK without the S.

So, you can either use "CLOCK" instead of "CLOCKS"

(custom-set-variables
 '(org-clock-into-drawer "CLOCK"))

or as Bernt and Achim already suggested, you can

(add-to-list 'org-drawers "CLOCKS")

Regards, Olaf

Reply via email to