Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1048151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:24:44+00:00 2026-05-16T16:24:44+00:00

I was trying to use the capture as is explained in org-manual p 74.

  • 0

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:24:44+00:00Added an answer on May 16, 2026 at 4:24 pm

    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:

    (setq org-default-notes-file (expand-file-name "~/notes.org"))
    

    Followup:
    To load a recent org-mode package:

    (add-to-list 'load-path "/my/home/emacs.d/org-7.01h/lisp")
    (require 'org-install)
    (require 'org) ;; maybe this line is redundant
    

    Note that as packaged, the org-mode lisp files are in the lisp sub-directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use regex to capture a list of space delimited words,
I have this code that im trying to use to capture audio data. However
Trying to use Excel VBA to capture all the file attributes from files on
I'm trying to use the Desktop capture filter that comes with the SDK (PushSourceDesktop).
I'm trying to use DirectSound to capture sound from a microphone. Here's my code:
I am trying to use Windows.Media.Capture.CameraCaptureUI() of Metro Style app in WPF application in
I am trying to use AVFoundation framework to capture a 'series' of still images
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
I have output with this format: /ignore-this/^/../I/want/this@ignore-this I am trying to use an awk
I am trying to capture an image of the screen for use in screencasting.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.