emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Autoset org-agenda-files
@ 2010-02-01 15:59 Fredrik
  2010-02-01 20:45 ` BKnoth
  2010-02-01 20:47 ` BKnoth
  0 siblings, 2 replies; 6+ messages in thread
From: Fredrik @ 2010-02-01 15:59 UTC (permalink / raw)
  To: emacs-orgmode

I wonder if someone with some elisp knowledge could help me out.... I  
have a folder containing all my org-files named as X.org and would  
like to autopopulate the org-agenda-files when I start emacs. So in  
short terms search folder for *.org (and exclude *-archive.org) so it  
is always done when starting emacs...

Anyone that could help me create such a function?

Regards,

Fredrik

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Autoset org-agenda-files
  2010-02-01 15:59 Autoset org-agenda-files Fredrik
@ 2010-02-01 20:45 ` BKnoth
  2010-02-01 20:47 ` BKnoth
  1 sibling, 0 replies; 6+ messages in thread
From: BKnoth @ 2010-02-01 20:45 UTC (permalink / raw)
  To: emacs-orgmode

On 2/1/2010 7:59 AM, Fredrik wrote:
> I wonder if someone with some elisp knowledge could help me out.... I
> have a folder containing all my org-files named as X.org and would like
> to autopopulate the org-agenda-files when I start emacs. So in short
> terms search folder for *.org (and exclude *-archive.org) so it is
> always done when starting emacs...
>
> Anyone that could help me create such a function?
>
> Regards,
>
> Fredrik

Look at the doc for org-agenda-files.

- Bruce

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Autoset org-agenda-files
  2010-02-01 15:59 Autoset org-agenda-files Fredrik
  2010-02-01 20:45 ` BKnoth
@ 2010-02-01 20:47 ` BKnoth
  2010-02-01 20:52   ` Carsten Dominik
  1 sibling, 1 reply; 6+ messages in thread
From: BKnoth @ 2010-02-01 20:47 UTC (permalink / raw)
  To: emacs-orgmode

On 2/1/2010 7:59 AM, Fredrik wrote:
> I wonder if someone with some elisp knowledge could help me out.... I
> have a folder containing all my org-files named as X.org and would like
> to autopopulate the org-agenda-files when I start emacs. So in short
> terms search folder for *.org (and exclude *-archive.org) so it is
> always done when starting emacs...
>
> Anyone that could help me create such a function?
>
> Regards,
>
> Fredrik
>
>
Sorry - I just sent a non-sensible response. I didn't read your message 
thoroughly. Still, I'd think the regex feature of the org-agenda-files 
variable could help you out. Maybe I'm missing the point.

- Bruce

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Autoset org-agenda-files
  2010-02-01 20:47 ` BKnoth
@ 2010-02-01 20:52   ` Carsten Dominik
  2010-02-01 21:34     ` David Maus
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2010-02-01 20:52 UTC (permalink / raw)
  To: BKnoth; +Cc: emacs-orgmode


On Feb 1, 2010, at 9:47 PM, BKnoth wrote:

> On 2/1/2010 7:59 AM, Fredrik wrote:
>> I wonder if someone with some elisp knowledge could help me out.... I
>> have a folder containing all my org-files named as X.org and would  
>> like
>> to autopopulate the org-agenda-files when I start emacs. So in short
>> terms search folder for *.org (and exclude *-archive.org) so it is
>> always done when starting emacs...

This is a FAQ.

http://orgmode.org/worg/org-faq.php#set-agenda-files-using-wildcards

- Carsten

>>
>> Anyone that could help me create such a function?
>>
>> Regards,
>>
>> Fredrik
>>
>>
> Sorry - I just sent a non-sensible response. I didn't read your  
> message thoroughly. Still, I'd think the regex feature of the org- 
> agenda-files variable could help you out. Maybe I'm missing the point.
>
> - Bruce
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Autoset org-agenda-files
  2010-02-01 20:52   ` Carsten Dominik
@ 2010-02-01 21:34     ` David Maus
  2010-02-02  7:44       ` Fredrik
  0 siblings, 1 reply; 6+ messages in thread
From: David Maus @ 2010-02-01 21:34 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: BKnoth, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1025 bytes --]

At Mon, 1 Feb 2010 21:52:01 +0100,
Carsten Dominik wrote:
>
>
> On Feb 1, 2010, at 9:47 PM, BKnoth wrote:
>
> > On 2/1/2010 7:59 AM, Fredrik wrote:
> >> I wonder if someone with some elisp knowledge could help me out.... I
> >> have a folder containing all my org-files named as X.org and would
> >> like
> >> to autopopulate the org-agenda-files when I start emacs. So in short
> >> terms search folder for *.org (and exclude *-archive.org) so it is
> >> always done when starting emacs...
>
> This is a FAQ.
>
> http://orgmode.org/worg/org-faq.php#set-agenda-files-using-wildcards
>

Or if your org folder contains subdirs and you store org-files as
attachments to headlines (read: more subfolders) you may use the
`find-list' library.

In my configuration file:

(require 'find-lisp)
(setq org-agenda-files (find-lisp-find-files org-directory "^[^#].+\\.org$"))

adds all .org files to the list of agenda files.

HTH
 -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... maus.david@gmail.com

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Autoset org-agenda-files
  2010-02-01 21:34     ` David Maus
@ 2010-02-02  7:44       ` Fredrik
  0 siblings, 0 replies; 6+ messages in thread
From: Fredrik @ 2010-02-02  7:44 UTC (permalink / raw)
  To: David Maus; +Cc: BKnoth, emacs-orgmode, Carsten Dominik

Thanks,

exactly what I was looking for...have some things that needs to be  
excluded and have som subfolders so this helps a lot..

Thank you all for your input...

Regards,

Fredrik

On 1 feb 2010, at 22.34, David Maus wrote:

> At Mon, 1 Feb 2010 21:52:01 +0100,
> Carsten Dominik wrote:
>>
>>
>> On Feb 1, 2010, at 9:47 PM, BKnoth wrote:
>>
>>> On 2/1/2010 7:59 AM, Fredrik wrote:
>>>> I wonder if someone with some elisp knowledge could help me  
>>>> out.... I
>>>> have a folder containing all my org-files named as X.org and would
>>>> like
>>>> to autopopulate the org-agenda-files when I start emacs. So in  
>>>> short
>>>> terms search folder for *.org (and exclude *-archive.org) so it is
>>>> always done when starting emacs...
>>
>> This is a FAQ.
>>
>> http://orgmode.org/worg/org-faq.php#set-agenda-files-using-wildcards
>>
>
> Or if your org folder contains subdirs and you store org-files as
> attachments to headlines (read: more subfolders) you may use the
> `find-list' library.
>
> In my configuration file:
>
> (require 'find-lisp)
> (setq org-agenda-files (find-lisp-find-files org-directory "^[^#].+\ 
> \.org$"))
>
> adds all .org files to the list of agenda files.
>
> HTH
> -- David
>
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber.... dmjena@jabber.org
> Email..... maus.david@gmail.com
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-02-02  8:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-01 15:59 Autoset org-agenda-files Fredrik
2010-02-01 20:45 ` BKnoth
2010-02-01 20:47 ` BKnoth
2010-02-01 20:52   ` Carsten Dominik
2010-02-01 21:34     ` David Maus
2010-02-02  7:44       ` Fredrik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).