emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>
To: Cameron Seader <cs@suse.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Global Task List
Date: Fri, 11 Nov 2011 21:24:28 +0100	[thread overview]
Message-ID: <87aa82flvn.fsf@rat.lan> (raw)
In-Reply-To: <4EBD74C8.3070209@suse.com> (Cameron Seader's message of "Fri, 11 Nov 2011 12:17:28 -0700")

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

  parent reply	other threads:[~2011-11-11 20:24 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 [this message]
2011-11-11 20:29       ` Cameron Seader
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=87aa82flvn.fsf@rat.lan \
    --to=olaf+list.orgmode@olafdietsche.de \
    --cc=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).