emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: George Taylor <menemenetekelupharsin@gmx.com>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87wpz8hbnz.fsf@gmail.com> (raw)
In-Reply-To: <trinity-df7fe388-3162-4698-a245-59930ce320e5-1434142470756@3capp-mailcom-bs01>


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(#<buffer  *load*> 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 "\b\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?

      reply	other threads:[~2015-06-12 21:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-12 20:54 Cannot get capture to work on Emacs 24.3.1 - Org itself does work George Taylor
2015-06-12 21:14 ` Myles English [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpz8hbnz.fsf@gmail.com \
    --to=mylesenglish@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=menemenetekelupharsin@gmx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).