I was trying to use the capture as is explained in org-manual p 74.
This is the .emacs file for org mode.
(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
(setq org-default-notes-file (concat org-directory "~/notes.org")) <-- error
(define-key global-map "\C-cc" 'org-capture)
But I get this error. What might be wrong?
Symbol's value as variable is void: org-directory
ADDED
After Dave’s answer, I modified the code, and it seems to work fine. But the other problem that I found was C-c c gives me this error.
Symbol's function definition is void : org-capture
First of all, make sure you’re using org-mode 6.36 or later. (Earlier versions use remember.el which has a different setup.)
You’re using a symbol that’s not defined,
org-directory.Try using:
Followup:
To load a recent org-mode package:
Note that as packaged, the org-mode lisp files are in the lisp sub-directory.