emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Chris Henderson <henders254@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Warning (initialization): An error occurred while loading /Users/<user>/.emacs
Date: Wed, 10 Oct 2012 17:45:19 +1100	[thread overview]
Message-ID: <CAFrmxDfz-WHA2eJO9wWmx2ya4qY_vEARY7_o-Gd8Dxfi7X1jKQ@mail.gmail.com> (raw)

I am getting this error when I add the following line to .emacs file:

Warning (initialization): An error occurred while loading
`/Users/<user>/.emacs':

Symbol's value as variable is void: org-directory
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

This is the line:

(setq org-default-notes-file (concat org-directory "~/org/note.org"))
     (define-key global-map "\C-cc" 'org-capture)

The directory ~/org and the file note.org exist.

M-x org-version: Org-mode version 7.8.11
M-x emacs-version: GNU Emacs 24.2.1 (x86_64-apple-darwin12.1.0) of 2012-09-06

Here is the orgmode related snippet of my .emacs file:

;; orgmode
;; The following lines are always needed.  Choose your own keys.
     (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
     (add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when
global-font-lock-mode is on
     (global-set-key "\C-cl" 'org-store-link)
     (global-set-key "\C-ca" 'org-agenda)
     (global-set-key "\C-cb" 'org-iswitchb)

;; GTD org-mode Todo time
(setq org-log-done 'time)
(setq org-log-done 'note)

;;
(setq org-tag-alist '(("@computer" . ?c) ("@Errands" . ?e) ("@work" .
?w) ("@calls" . ?a)("@Int\
ernet" . ?i) ("@waitingfor" . ?w)))

(setq org-default-notes-file (concat org-directory "~/org/note.org"))
     (define-key global-map "\C-cc" 'org-capture)

(setq org-todo-keywords
            '((sequence "TODO(t)" "|" "DONE(d)")
              (sequence "|" "CANCELED(c)")))

Thanks.

             reply	other threads:[~2012-10-10  6:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-10  6:45 Chris Henderson [this message]
2012-10-10  6:58 ` Warning (initialization): An error occurred while loading /Users/<user>/.emacs Sebastien Vauban
2012-10-10  7:06   ` Chris Henderson

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=CAFrmxDfz-WHA2eJO9wWmx2ya4qY_vEARY7_o-Gd8Dxfi7X1jKQ@mail.gmail.com \
    --to=henders254@gmail.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).