[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: How you ORGanize yourself? (aka: Why not one file to r
From: |
Matthew Lundin |
Subject: |
Re: [Orgmode] Re: How you ORGanize yourself? (aka: Why not one file to rule'em all?) |
Date: |
Mon, 19 Apr 2010 11:07:22 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Carsten,
Carsten Dominik <address@hidden> writes:
> On Apr 17, 2010, at 3:50 PM, Matt Lundin wrote:
>
>> FWIW, I've found it quite convenient to rely on filetags to organize
>> my notes. I've written a few functions that allow me to limit my
>> agenda to a subset of agenda files that share a filetag (e.g.,
>> "emacs" or "writing"). This is a bit quicker than calling agenda
>> commands on all agenda files and then filtering afterward. It also
>> allows for greater focus on a particular area of work. Here are the
>> functions:
>> http://orgmode.org/worg/org-hacks.php#set-agenda-files-by-filetag > >
> Hi Matt,
>
> this is very interesting!
>
> One idea: Instead of setting the value of org-agenda-files,
> you can also restrict in the following way:
>
> (org-agenda-remove-restriction-lock)
> (put 'org-agenda-files 'org-restrict my-file-list)
> (setq org-agenda-overriding-restriction 'files)
>
> The restriction sticks until you remove it with `C-c C_x >'
>
> I am not sure this will work better for your case - but maybe it will.
Thanks for the tip! That's much more elegant.
I find that (org-agenda-restriction-lock) makes subsequent calls to
my-org-agenda-files-by-filetag slow, since it refreshes the current
agenda.
Are there any potential pitfalls if I use (setq org-agenda-restrict nil)
instead?
Thanks,
Matt
[Orgmode] Re: How you ORGanize yourself? (aka: Why not one file to rule'em all?), Flavio Souza, 2010/04/20