emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Paul Jewell <paul@teulu.org>
To: emacs-orgmode@gnu.org
Subject: org-agenda-files
Date: Tue, 6 Oct 2015 21:34:31 +0100	[thread overview]
Message-ID: <56143057.1040201@teulu.org> (raw)

Good evening!

I am starting to use a more complex setup for org-mode, having left it
alone for more than a year. The setup I am using is documented here:
http://doc.norang.ca/org-mode.html

I am having a problem with setting up the org-agenda-files variable in
the startup code:

In my .emacs:

------------------------8<------------------------------------------------
(setq org-user-agenda-files ( quote ("~/git/org"
                                     "~/git/org/test")))

(add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp"))
(load "org-mode")

------------------------8<------------------------------------------------

In the org-mode.el file from the above site:

------------------------8<------------------------------------------------
;; The following setting is different from the document so that you
;; can override the document org-agenda-files by setting your
;; org-agenda-files in the variable org-user-agenda-files
;;
(if (boundp 'org-user-agenda-files)
    (setq org-agenda-files org-user-agenda-files)
  (setq org-agenda-files (quote ("~/git/org"
                               "~/git/org/client1"
                               "~/git/client2"))))

------------------------8<------------------------------------------------

So by setting org-user-agenda-files in my .emacs before loading
org-mode.el (which I have in my ~/.emacs.d/lisp directory), I should be
setting org-agenda-files to ("~/git/org" "~/git/org/test").

Results of executing the following code (in this order) in the scratch
buffer:
(boundp 'org-user-agenda-files)   =>  t
org-user-agenda-files             =>  ("~/git/org" "~/git/org/test")
(boundp 'org-agenda-files)        =>  t
org-agenda-files                  =>  nil
(setq org-agenda-files org-user-agenda-files) => ("~/git/org"
"~/git/org/test")
org-agenda-files                              => ("~/git/org"
"~/git/org/test")

So I don't understand why the commands in .emacs and org-mode.el aren't
giving me the expected results. Have I missed something with my limited
knowledge of lisp?

Many thanks in advance for your help!

             reply	other threads:[~2015-10-06 20:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-06 20:34 Paul Jewell [this message]
2015-10-08 19:42 ` org-agenda-files Eric S Fraga
2015-10-08 21:36   ` org-agenda-files Paul Jewell
2015-10-09  7:15     ` org-agenda-files Eric S Fraga

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=56143057.1040201@teulu.org \
    --to=paul@teulu.org \
    --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).