emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* RE: Re: font lock mode can't get to work
@ 2008-09-25 20:56 Sullivan, Gregory (US SSA)
  0 siblings, 0 replies; 2+ messages in thread
From: Sullivan, Gregory (US SSA) @ 2008-09-25 20:56 UTC (permalink / raw)
  To: Bernt Hansen, Graham Smith; +Cc: emacs-orgmode

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 


-----Original Message-----
From: emacs-orgmode-bounces+gregory.sullivan=baesystems.com@gnu.org
[mailto:emacs-orgmode-bounces+gregory.sullivan=baesystems.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" <myotisone@gmail.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Re: font lock mode can't get to work
       [not found] <737og9$4pfbp@dmzms99902.na.baesystems.com>
@ 2008-09-25 21:00 ` Graham Smith
  0 siblings, 0 replies; 2+ messages in thread
From: Graham Smith @ 2008-09-25 21:00 UTC (permalink / raw)
  To: emacs-orgmode

2008/9/25 Sullivan, Gregory (US SSA) <gregory.sullivan@baesystems.com>:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-25 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <737og9$4pfbp@dmzms99902.na.baesystems.com>
2008-09-25 21:00 ` Re: font lock mode can't get to work Graham Smith
2008-09-25 20:56 Sullivan, Gregory (US SSA)

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).