From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: font lock mode can't get to work Date: Thu, 25 Sep 2008 15:53:34 -0400 Message-ID: <87ljxghuip.fsf@gollum.intra.norang.ca> References: <2c75873c0809251231u6a4b0789x6914d77d88eccb55@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KiwuH-00083h-EF for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 15:53:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KiwuG-00083C-R2 for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 15:53:45 -0400 Received: from [199.232.76.173] (port=38164 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiwuG-000831-LA for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 15:53:44 -0400 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:60691) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KiwuG-00006E-AA for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 15:53:44 -0400 In-Reply-To: <2c75873c0809251231u6a4b0789x6914d77d88eccb55@mail.gmail.com> (Graham Smith's message of "Thu\, 25 Sep 2008 20\:31\:27 +0100") 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: Graham Smith Cc: emacs-orgmode@gnu.org "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