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

2008-09-25 Thread Sullivan, Gregory (US SSA)
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)
[EMAIL PROTECTED] 


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

Graham Smith [EMAIL PROTECTED] 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.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



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


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

2008-09-25 Thread Graham Smith
2008/9/25 Sullivan, Gregory (US SSA) [EMAIL PROTECTED]:
 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.

I'm afraid I was just copying it across, without giving any specific
thoughts to the syntax.

Graham


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