From: Bernt Hansen <bernt@norang.ca>
To: Graham Smith <myotisone@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: font lock mode can't get to work
Date: Thu, 25 Sep 2008 15:53:34 -0400 [thread overview]
Message-ID: <87ljxghuip.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <2c75873c0809251231u6a4b0789x6914d77d88eccb55@mail.gmail.com> (Graham Smith's message of "Thu\, 25 Sep 2008 20\:31\:27 +0100")
"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
next prev parent reply other threads:[~2008-09-25 19:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 19:31 font lock mode can't get to work Graham Smith
2008-09-25 19:53 ` Bernt Hansen [this message]
2008-09-25 20:04 ` Graham Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ljxghuip.fsf@gollum.intra.norang.ca \
--to=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=myotisone@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).