[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Warning (initialization): An error occurred while loading /Users/<us
From: |
Chris Henderson |
Subject: |
[O] Warning (initialization): An error occurred while loading /Users/<user>/.emacs |
Date: |
Wed, 10 Oct 2012 17:45:19 +1100 |
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.
- [O] Warning (initialization): An error occurred while loading /Users/<user>/.emacs,
Chris Henderson <=