emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Orgmode] Re: font lock mode can't get to work


From: Sullivan, Gregory \(US SSA\)
Subject: RE: [Orgmode] Re: font lock mode can't get to work
Date: Thu, 25 Sep 2008 16:56:00 -0400

I think the "\\'" after ".org" is to match the end of the filename.

>From emacs info section "Regexp Backslash",

`\''
     matches the empty string, but only at the end of the string or
     buffer (or its accessible portion) being matched against.

--Greg

--
Gregory T. Sullivan, Ph.D.
BAE Systems Advanced Information Technologies
6 New England Executive Park, Burlington, MA 01803
781-262-4553 (office),  978-430-3461 (cell)
address@hidden 


-----Original Message-----
From: address@hidden
[mailto:address@hidden
On Behalf Of Bernt Hansen
Sent: Thursday, September 25, 2008 3:54 PM
To: Graham Smith
Cc: address@hidden
Subject: [Orgmode] Re: font lock mode can't get to work

"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


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]