From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cameron Seader Subject: Re: Global Task List Date: Fri, 11 Nov 2011 13:29:40 -0700 Message-ID: <4EBD85B4.8070804@suse.com> References: <4EBD672E.8000706@suse.com> <20111111183650.GA11607@zozo.lan> <4EBD74C8.3070209@suse.com> <87aa82flvn.fsf@rat.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROxjX-00021O-6u for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 15:29:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROxjV-0000xw-4G for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 15:29:55 -0500 Received: from smtp2.provo.novell.com ([137.65.250.81]:33061 helo=novell.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROxjU-0000xk-DK for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 15:29:53 -0500 In-Reply-To: <87aa82flvn.fsf@rat.lan> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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