From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: Cannot get capture to work on Emacs 24.3.1 - Org itself does work Date: Fri, 12 Jun 2015 22:14:24 +0100 Message-ID: <87wpz8hbnz.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3WGw-00062w-HC for emacs-orgmode@gnu.org; Fri, 12 Jun 2015 17:13:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3WGr-0000EY-EK for emacs-orgmode@gnu.org; Fri, 12 Jun 2015 17:13:54 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:35875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3WGr-0000ET-6t for emacs-orgmode@gnu.org; Fri, 12 Jun 2015 17:13:49 -0400 Received: by wigg3 with SMTP id g3so26736366wig.1 for ; Fri, 12 Jun 2015 14:13:48 -0700 (PDT) In-reply-to: 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: George Taylor Cc: emacs-orgmode@gnu.org Hello George, George Taylor writes: > I cannot get Capture to work. > > Summary: > I have successfully installed and used emacs on my laptop, and am happily using Org mode. > I cannot get Capture to work. I have edited my .emacs file, but I am getting an error when starting emacs, and C-c c does not work. > > Detail: > I have installed > > 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN on my laptop running Windows XP (Japanese). > > Org-mode works. > > I edited my .emacs file per .../manual/Setting-up-capture.html#Setting-up-capture > by adding try this here, before the setq for org-default-notes-file below: (setq org-directory "c:/home/yadda/yadda") or if you have already started emacs you can put the cursor after the last bracket and hold down Ctl and press x then e to evaluate it. Then do the same for the line below that sets org-default-notes-file. You can check if the variable has been set properly by pressing Ctl-h v then typing org-directory. Myles > (setq org-default-notes-file (concat org-directory "/notes.org")) > (define-key global-map "\C-cc" 'org-capture) > > Now, when I start emacs normally, I get the warning: > > ...: An error occurred while loading `c:/home/.emacs': > > Symbol's value as variable is void: org-directory > > To ensure normal operation... > > I restarted emacs by running > > runemacs.exe --debug-init > > and got the foolowing Backtrace: > > Debugger entered--Lisp error: (void-variable org-directory) > (concat org-directory "/notes.org") > (setq org-default-notes-file (concat org-directory "/notes.org")) > eval-buffer(# nil "c:/home/.emacs" nil t) ; Reading at buffer position 1168 > load-with-code-conversion("c:/home/.emacs" "c:/home/.emacs" t t) > load("~/.emacs" t t) > #[0 "\205\262 (and a lot of other code conversions that don't seem to copy and paste) > > I have referred to the org manual, and read the FAQ. I do not see this problem addressed. I hope you can help me. > > Why is the variable org-directory void? > Do I need to edit some file other than .emacs? > Is there something else I should do?