Re: [O] Global Task List

2011-11-11 Thread Nick Dokos
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.

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





Re: [O] Global Task List

2011-11-11 Thread Sebastien Vauban
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




Re: [O] Global Task List

2011-11-11 Thread Nick Dokos
Cameron Seader  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



Re: [O] Global Task List

2011-11-11 Thread Cameron Seader

Perfect.

On 11/11/2011 01:24 PM, Olaf Dietsche wrote:

Cameron Seader  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



Re: [O] Global Task List

2011-11-11 Thread Olaf Dietsche
Cameron Seader  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



Re: [O] Global Task List

2011-11-11 Thread Olivier Schwander
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



Re: [O] Global Task List

2011-11-11 Thread Cameron Seader

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

Olivier





--
Cameron



Re: [O] Global Task List

2011-11-11 Thread Olivier Schwander
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 
).

Olivier




[O] Global Task List

2011-11-11 Thread Cameron Seader

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