emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Cameron Seader <cs@suse.com>
To: emacs-orgmode@gnu.org
Subject: Re: Global Task List
Date: Fri, 11 Nov 2011 13:29:40 -0700	[thread overview]
Message-ID: <4EBD85B4.8070804@suse.com> (raw)
In-Reply-To: <87aa82flvn.fsf@rat.lan>

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

  reply	other threads:[~2011-11-11 20:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2011-11-11 20:30     ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EBD85B4.8070804@suse.com \
    --to=cs@suse.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).