emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Global Task List


From: Cameron Seader
Subject: Re: [O] Global Task List
Date: Fri, 11 Nov 2011 13:29:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

Perfect.

On 11/11/2011 01:24 PM, Olaf Dietsche wrote:
Cameron Seader<address@hidden>  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 via email to

[Prev in Thread] Current Thread [Next in Thread]