Cameron Seader <c...@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