CharlesX
CharlesX

Reputation: 448

org-mode with setting up a capture location in emacs

I put this in my .emacs file:

(setq org-default-notes-file (concat org-directory "/notes.org"))
(define-key global-map "\C-cc" 'org-capture)

But when I open emacs, this occurs:

Symbol's value as variable is void:org-directory

How can I solve this?

Upvotes: 0

Views: 544

Answers (1)

Trudbert
Trudbert

Reputation: 3198

You first need to set org-directory with something like (setq org-directory "folder") otherwise it will be undefined and produce an error

Upvotes: 3

Related Questions