[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Warning (initialization): An error occurred while loading /Users
From: |
Chris Henderson |
Subject: |
Re: [O] Warning (initialization): An error occurred while loading /Users/<user>/.emacs |
Date: |
Wed, 10 Oct 2012 18:06:11 +1100 |
On Wed, Oct 10, 2012 at 5:58 PM, Sebastien Vauban
<address@hidden> 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/<user>/.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.