[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Avoiding open buffers when clocking in
From: |
Julian M. Burgos |
Subject: |
Re: [O] Avoiding open buffers when clocking in |
Date: |
Tue, 22 Sep 2015 16:47:33 +0000 |
Actually, the solution is obvious... I should think before posting.
(defun my-org-clock-in ()
"Clock in and close all unmodified buffers."
(interactive)
(org-clock-in)
(mapc 'kill-buffer (cdr (buffer-list (current-buffer))))
)
Julian M. Burgos writes:
> Thanks Kyle, I did not knew this one. I was manually using this
> function
>
> (defun only-current-buffer ()
> (interactive)
>
> (mapc 'kill-buffer (cdr (buffer-list (current-buffer)))))
>
> to kill all buffers after clocking in, but your solution is simpler.
>
>
>
> Kyle Meyer writes:
>
>> "Julian M. Burgos" <address@hidden> writes:
>>
>>> When clocking in at some particular task, org-mode opens all my agenda
>>> files (I assume to check if there are dangling clocks). I have many
>>> agenda files, and I rather avoid opening tons of new buffers. Is there any
>>> way to make org-mode not check for dangling clocks in other agenda
>>> files?
>>
>> If you're ok with disabling automatic clock resolution entirely, setting
>> org-clock-auto-clock-resolution to nil should work.
--
Julian Mariano Burgos, PhD
Hafrannsóknastofnun/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax: +354-5752001
Netfang/Email: address@hidden