From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Graham Smith" Subject: Re: font lock mode can't get to work Date: Thu, 25 Sep 2008 21:04:36 +0100 Message-ID: <2c75873c0809251304x6e83bd98ua4bdaa6c62b75fed@mail.gmail.com> References: <2c75873c0809251231u6a4b0789x6914d77d88eccb55@mail.gmail.com> <87ljxghuip.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kix4o-0004gP-SS for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 16:04:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kix4o-0004gD-Gk for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 16:04:38 -0400 Received: from [199.232.76.173] (port=52581 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kix4o-0004gA-DI for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 16:04:38 -0400 Received: from yw-out-1718.google.com ([74.125.46.157]:42489) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kix4n-0001mV-TN for emacs-orgmode@gnu.org; Thu, 25 Sep 2008 16:04:38 -0400 Received: by yw-out-1718.google.com with SMTP id 9so112156ywk.66 for ; Thu, 25 Sep 2008 13:04:36 -0700 (PDT) In-Reply-To: <87ljxghuip.fsf@gollum.intra.norang.ca> Content-Disposition: inline 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 Cc: emacs-orgmode@gnu.org >> ;; 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. Ah, your comments have made me realise what the problem is. The line has been copied from the PDF of the manual, but the single apostrophe doesn't paste properly. I had corrected one but not the other. Its working now. I did know it was going to be something stupid. Thanks, your post made me look at this line that much more closely. Graham