Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get the org-mode that came with my emacs-22.3 to work, with no luck. What I added to my .emacs:

(add-to-list 'load-path "C:/Program Files/Emacs/emacs-22.3/lisp/textmodes")
(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)

And I'm sure that there's an org.elc in the textmodes directory. I start emacs with a script called RunEmacs.bat that contains the following

set HOME=.

The error I get is

An error has occurred while loading `c:/Program Files/Emacs/.emacs':

File error: Cannot open load file, org-install

share|improve this question
up vote 5 down vote accepted

If you are using the org-mode package that came with the Emacs 22, then no need to install it. Just run the command M-x org-mode on any file that you intend to use as an org file.

In addition, the line (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) that you added to your .emacs file will automatically start org-mode for any file that ends with the extension *.org.

Remove the line (require 'org-install) from your .emacs file since that is only applicable if you had downloaded a separate org-mode package if, for example, you were using an older version of Emacs that does not have org-mode.

share|improve this answer
OK, thanks! I could have sworn that when I looked at it had the 'require' line in there, and then the 'add-to-list' was something I found by searching the internet. – Nate Parsons Nov 5 '10 at 23:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .