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?
You first need to set
org-directorywith something like(setq org-directory "folder")otherwise it will be undefined and produce an error