From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sullivan, Gregory \(US SSA\)" Subject: RE: Re: font lock mode can't get to work Date: Thu, 25 Sep 2008 16:56:00 -0400 Message-ID: <738lm5$jo87h@dmzms99801.na.baesystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KixtM-0005NB-7j for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 16:56:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KixtK-0005Mp-Od for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 16:56:51 -0400 Received: from [199.232.76.173] (port=46233 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KixtK-0005Mm-LW for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 16:56:50 -0400 Received: from dmzms99801.na.baesystems.com ([149.32.232.65]:8729) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KixtK-0002n6-3D for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 16:56:50 -0400 content-class: urn:content-classes:message List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen , Graham Smith Cc: emacs-orgmode@gnu.org 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) gregory.sullivan@baesystems.com=20 -----Original Message----- From: emacs-orgmode-bounces+gregory.sullivan=3Dbaesystems.com@gnu.org [mailto:emacs-orgmode-bounces+gregory.sullivan=3Dbaesystems.com@gnu.org] 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" 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