From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Henderson Subject: Re: Warning (initialization): An error occurred while loading /Users//.emacs Date: Wed, 10 Oct 2012 18:06:11 +1100 Message-ID: References: <80a9vux17c.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLqN0-0006nc-I1 for emacs-orgmode@gnu.org; Wed, 10 Oct 2012 03:06:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLqMt-0002Sm-UW for emacs-orgmode@gnu.org; Wed, 10 Oct 2012 03:06:18 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:49469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLqMt-0002Se-PG for emacs-orgmode@gnu.org; Wed, 10 Oct 2012 03:06:11 -0400 Received: by mail-ob0-f169.google.com with SMTP id va7so211190obc.0 for ; Wed, 10 Oct 2012 00:06:11 -0700 (PDT) In-Reply-To: <80a9vux17c.fsf@somewhere.org> 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org On Wed, Oct 10, 2012 at 5:58 PM, Sebastien Vauban wrote: > Hi Chris, > > Chris Henderson wrote: >> 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 > > It says it all: you're using an undefined variable (org-directory). > >> (setq org-default-notes-file (concat org-directory "~/org/note.org")) > > Adapt your code as this: > > --8<---------------cut here---------------start------------->8--- > (setq org-directory "~/org/") > (setq org-default-notes-file (concat org-directory "note.org")) > --8<---------------cut here---------------end--------------->8--- Thanks. It works.