From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Dietsche Subject: Re: Global Task List Date: Fri, 11 Nov 2011 21:24:28 +0100 Message-ID: <87aa82flvn.fsf@rat.lan> References: <4EBD672E.8000706@suse.com> <20111111183650.GA11607@zozo.lan> <4EBD74C8.3070209@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROxeT-00015J-Tx for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 15:24:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROxeS-0007iS-M9 for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 15:24:41 -0500 Received: from www85.your-server.de ([213.133.104.85]:40257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROxeS-0007hz-Hi for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 15:24:40 -0500 In-Reply-To: <4EBD74C8.3070209@suse.com> (Cameron Seader's message of "Fri, 11 Nov 2011 12:17:28 -0700") 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: Cameron Seader Cc: emacs-orgmode@gnu.org 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