[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] can I refile or archive from the agenda without rebuilding?
From: |
Samuel Loury |
Subject: |
Re: [O] can I refile or archive from the agenda without rebuilding? |
Date: |
Mon, 15 Dec 2014 09:31:19 +0100 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) |
Alan Schmitt <address@hidden> writes:
> On 2014-12-12 12:01, Kyle Meyer <address@hidden> writes:
>
>> Alan Schmitt <address@hidden> wrote:
>>> My agenda is fairly big, and it takes a few minutes to generate it.
>>
>> Wow.
>
> I meant seconds (about 20 seconds). But is feels like minutes ;)
I have the same feeling :-).
>>> When I need to refile many items to different places (so bulk edit is
>>> not an option), it slows me down quite a bit. Is there an option to
>>> prevent rebuilding the agenda after archiving or refiling?
>>
>> org-agenda-refile takes a NO-UPDATE argument. To set this
>> interactively, you could advise org-agenda-refile (or wrap it in another
>> command).
>
> This is a great suggestion, thanks! It works perfectly.
For other readers to take advantage of the code, this is my
implementation of the advise.
--8<---------------cut here---------------start------------->8---
(defun my/org-agenda-refile (orig &optional goto rfloc no-update)
(funcall orig goto rfloc t))
(add-function :around
(symbol-function 'org-agenda-refile)
#'my/org-agenda-refile)
--8<---------------cut here---------------end--------------->8---
My two cents,
--
Konubinix
GPG Key : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A
signature.asc
Description: PGP signature