From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Henderson Subject: Warning (initialization): An error occurred while loading /Users//.emacs Date: Wed, 10 Oct 2012 17:45:19 +1100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLq2k-0008HQ-Ub for emacs-orgmode@gnu.org; Wed, 10 Oct 2012 02:45:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLq2j-00058C-2D for emacs-orgmode@gnu.org; Wed, 10 Oct 2012 02:45:22 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:34536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLq2i-00056r-T9 for emacs-orgmode@gnu.org; Wed, 10 Oct 2012 02:45:20 -0400 Received: by mail-ob0-f169.google.com with SMTP id va7so195480obc.0 for ; Tue, 09 Oct 2012 23:45:20 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I am getting this error when I add the following line to .emacs file: Warning (initialization): An error occurred while loading `/Users//.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.