[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: font lock mode can't get to work
From: |
Bernt Hansen |
Subject: |
[Orgmode] Re: font lock mode can't get to work |
Date: |
Thu, 25 Sep 2008 15:53:34 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
"Graham Smith" <address@hidden> writes:
> I am using emacs/org mode 6.07b on linux (ubuntu Hardy) and am having
> a problem with the font lock mode.
>
> adding -*- mode: org; -*- to the file itself works fine, but simply
> loading a test.org file doesn't activate org mode.
>
> I have tried commenting out and back in different options in .emacs,
> but none seem to work.
>
> I only have these lines in .emacs at the moment.
>
>
> ;;;;;;;;; Org -Mode;;;;;;;;;;
>
> (setq load-path (cons "~/EmacsAddins/Orgmode/lisp" load-path))
> (setq load-path (cons "~/EmacsAddins/Orgmode/contrib/lisp" load-path))
> (require 'org-install)
>
> ;; The following lines are always needed. Choose your own keys.
> (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
This line looks wrong. What's the extra \\' for after .org?
I have the following:
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$" . org-mode))
so that any files ending in .org or .org_archive trigger org-mode.
-Bernt