emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Global Task List
@ 2011-11-11 18:19 Cameron Seader
  2011-11-11 18:36 ` Olivier Schwander
  0 siblings, 1 reply; 9+ messages in thread
From: Cameron Seader @ 2011-11-11 18:19 UTC (permalink / raw)
  To: emacs-orgmode

Greetings,
Did I miss something in the Docs?

I have lots of .org files with tasks in each one, but my global task 
list does not show anything. Is there something I need to do to set this up?

Thanks,
-- 
Cameron

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

* Re: Global Task List
  2011-11-11 18:19 Global Task List Cameron Seader
@ 2011-11-11 18:36 ` Olivier Schwander
  2011-11-11 19:17   ` Cameron Seader
  0 siblings, 1 reply; 9+ messages in thread
From: Olivier Schwander @ 2011-11-11 18:36 UTC (permalink / raw)
  To: emacs-orgmode

Le 11 Nov 2011 11:19, Cameron Seader a écrit:
> I have lots of .org files with tasks in each one, but my global task
> list does not show anything. Is there something I need to do to set
> this up?

You should have a look to the variable org-agenda-files (see <http://orgmode.org/org.html#Agenda-files>).

Olivier

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

* Re: Global Task List
  2011-11-11 18:36 ` Olivier Schwander
@ 2011-11-11 19:17   ` Cameron Seader
  2011-11-11 20:17     ` Olivier Schwander
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Cameron Seader @ 2011-11-11 19:17 UTC (permalink / raw)
  To: emacs-orgmode

I get an error when setting the variable to a folder

Here is my .emacs file

;; Org-mode settings
(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
(global-font-lock-mode 1)
(setq org-log-done t)
(setq org-agenda-custom-commands
         ((org-agenda-files '("~/Documents/Notes/org/"))
         ))

(setq inhibit-splash-screen t)

I get the following error when my .emacs file is initialized.

Invalid function: (org-agenda-files (quote (~/Documents/Notes/org/)))

any ideas
TIA,

On 11/11/2011 11:36 AM, Olivier Schwander wrote:
> Le 11 Nov 2011 11:19, Cameron Seader a écrit:
>> I have lots of .org files with tasks in each one, but my global task
>> list does not show anything. Is there something I need to do to set
>> this up?
>
> You should have a look to the variable org-agenda-files (see<http://orgmode.org/org.html#Agenda-files>).
>
> Olivier
>
>
>

-- 
Cameron

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

* Re: Global Task List
  2011-11-11 19:17   ` Cameron Seader
@ 2011-11-11 20:17     ` Olivier Schwander
  2011-11-11 20:52       ` Sebastien Vauban
  2011-11-12  1:42       ` Nick Dokos
  2011-11-11 20:24     ` Olaf Dietsche
  2011-11-11 20:30     ` Nick Dokos
  2 siblings, 2 replies; 9+ messages in thread
From: Olivier Schwander @ 2011-11-11 20:17 UTC (permalink / raw)
  To: emacs-orgmode

Le 11 Nov 2011 12:17, Cameron Seader a écrit:
> I get an error when setting the variable to a folder
> (setq org-agenda-custom-commands
>         ((org-agenda-files '("~/Documents/Notes/org/"))
>         ))

You are not supposed to set it to a folder. I use something like:

(setq org-agenda-files (file-expand-wildcards "~/Notes/*.org"))

Olivier

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

* Re: Global Task List
  2011-11-11 19:17   ` Cameron Seader
  2011-11-11 20:17     ` Olivier Schwander
@ 2011-11-11 20:24     ` Olaf Dietsche
  2011-11-11 20:29       ` Cameron Seader
  2011-11-11 20:30     ` Nick Dokos
  2 siblings, 1 reply; 9+ messages in thread
From: Olaf Dietsche @ 2011-11-11 20:24 UTC (permalink / raw)
  To: Cameron Seader; +Cc: emacs-orgmode

Cameron Seader <cs@suse.com> writes:

> I get an error when setting the variable to a folder
>
> Here is my .emacs file
>
> ;; Org-mode settings
> (require 'org-install)
> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> (global-set-key "\C-cl" 'org-store-link)
> (global-set-key "\C-ca" 'org-agenda)
> (global-set-key "\C-cb" 'org-iswitchb)
> (global-font-lock-mode 1)
> (setq org-log-done t)
> (setq org-agenda-custom-commands
>         ((org-agenda-files '("~/Documents/Notes/org/"))
>         ))
>
> (setq inhibit-splash-screen t)
>
> I get the following error when my .emacs file is initialized.
>
> Invalid function: (org-agenda-files (quote (~/Documents/Notes/org/)))

you mixed org-agenda-custom-commands and org-agenda-files. You can set
org-agenda-files as part of org-agenda-custom-commands, but then you
have to define at least one private command as well.

An easier way to start is just setting org-agenda-files alone.
Either with `setq':

(setq org-agenda-files "~/Documents/Notes/org/")

or with `custom-set-variables':

(custom-set-variables
 '(org-agenda-files "~/Documents/Notes/org/"))

Regards, Olaf

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

* Re: Global Task List
  2011-11-11 20:24     ` Olaf Dietsche
@ 2011-11-11 20:29       ` Cameron Seader
  0 siblings, 0 replies; 9+ messages in thread
From: Cameron Seader @ 2011-11-11 20:29 UTC (permalink / raw)
  To: emacs-orgmode

Perfect.

On 11/11/2011 01:24 PM, Olaf Dietsche wrote:
> Cameron Seader<cs@suse.com>  writes:
>
>> I get an error when setting the variable to a folder
>>
>> Here is my .emacs file
>>
>> ;; Org-mode settings
>> (require 'org-install)
>> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
>> (global-set-key "\C-cl" 'org-store-link)
>> (global-set-key "\C-ca" 'org-agenda)
>> (global-set-key "\C-cb" 'org-iswitchb)
>> (global-font-lock-mode 1)
>> (setq org-log-done t)
>> (setq org-agenda-custom-commands
>>          ((org-agenda-files '("~/Documents/Notes/org/"))
>>          ))
>>
>> (setq inhibit-splash-screen t)
>>
>> I get the following error when my .emacs file is initialized.
>>
>> Invalid function: (org-agenda-files (quote (~/Documents/Notes/org/)))
>
> you mixed org-agenda-custom-commands and org-agenda-files. You can set
> org-agenda-files as part of org-agenda-custom-commands, but then you
> have to define at least one private command as well.
>
> An easier way to start is just setting org-agenda-files alone.
> Either with `setq':
>
> (setq org-agenda-files "~/Documents/Notes/org/")
>
> or with `custom-set-variables':
>
> (custom-set-variables
>   '(org-agenda-files "~/Documents/Notes/org/"))
>
> Regards, Olaf
>
>

Olivier Schwander's suggestion worked best.

I used this below:
(setq org-agenda-files (file-expand-wildcards "~/Notes/*.org"))

works like a charm. Love it.
Thanks,
-- 
Cameron

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

* Re: Global Task List
  2011-11-11 19:17   ` Cameron Seader
  2011-11-11 20:17     ` Olivier Schwander
  2011-11-11 20:24     ` Olaf Dietsche
@ 2011-11-11 20:30     ` Nick Dokos
  2 siblings, 0 replies; 9+ messages in thread
From: Nick Dokos @ 2011-11-11 20:30 UTC (permalink / raw)
  To: Cameron Seader; +Cc: nicholas.dokos, emacs-orgmode

Cameron Seader <cs@suse.com> wrote:


> (setq org-agenda-custom-commands
>         ((org-agenda-files '("~/Documents/Notes/org/"))
>         ))
> 

> I get the following error when my .emacs file is initialized.
> 
> Invalid function: (org-agenda-files (quote (~/Documents/Notes/org/)))
> 

Bad syntax: to set the variable, say

(setq org-agenda-files '("~/Documents/Notes/org"))

This has nothing to do with org-agenda-custom-commands. If you want
to set the latter to something, do it separately.

Nick

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

* Re: Global Task List
  2011-11-11 20:17     ` Olivier Schwander
@ 2011-11-11 20:52       ` Sebastien Vauban
  2011-11-12  1:42       ` Nick Dokos
  1 sibling, 0 replies; 9+ messages in thread
From: Sebastien Vauban @ 2011-11-11 20:52 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Olivier and Cameron,

Olivier Schwander wrote:
> Le 11 Nov 2011 12:17, Cameron Seader a écrit:
>> I get an error when setting the variable to a folder
>> (setq org-agenda-custom-commands
>>         ((org-agenda-files '("~/Documents/Notes/org/"))
>>         ))
>
> You are not supposed to set it to a folder.

"Yes, you can". See
http://www.gnu.org/software/emacs/manual/html_node/org/Agenda-files.html.

But your error comes from the way you write you agenda custom commands: no
dispatcher key, no documentation string, etc.

> I use something like:
>
> (setq org-agenda-files (file-expand-wildcards "~/Notes/*.org"))

Cameron, use something like the above for a system-wide setting, or something
like this for a change just for some custom view:

#+begin_src emacs-lisp
("p" "Tasks in my personal realm"
 alltodo ""
 ((org-agenda-files
   '("~/Personal/TODO.org"))))
#+end_src

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: Global Task List
  2011-11-11 20:17     ` Olivier Schwander
  2011-11-11 20:52       ` Sebastien Vauban
@ 2011-11-12  1:42       ` Nick Dokos
  1 sibling, 0 replies; 9+ messages in thread
From: Nick Dokos @ 2011-11-12  1:42 UTC (permalink / raw)
  To: Olivier Schwander; +Cc: nicholas.dokos, emacs-orgmode

Olivier Schwander <olivier.schwander@chadok.info> wrote:

> Le 11 Nov 2011 12:17, Cameron Seader a écrit:
> > I get an error when setting the variable to a folder
> > (setq org-agenda-custom-commands
> >         ((org-agenda-files '("~/Documents/Notes/org/"))
> >         ))
> 
> You are not supposed to set it to a folder.

That's not true: you can set it to

       - a list of files and directories
       - a single file name 

C-h v org-agenda-files RET for the details.

> I use something like:
> (setq org-agenda-files (file-expand-wildcards "~/Notes/*.org"))
> 

You can do the same thing like this:

   (setq org-agenda-files '("~/Notes"))

with the default value of org-agenda-file-regexp.

Nick

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

end of thread, other threads:[~2011-11-12  1:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-11 18:19 Global Task List Cameron Seader
2011-11-11 18:36 ` Olivier Schwander
2011-11-11 19:17   ` Cameron Seader
2011-11-11 20:17     ` Olivier Schwander
2011-11-11 20:52       ` Sebastien Vauban
2011-11-12  1:42       ` Nick Dokos
2011-11-11 20:24     ` Olaf Dietsche
2011-11-11 20:29       ` Cameron Seader
2011-11-11 20:30     ` Nick Dokos

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).