* org-mode not recognized as major mode
@ 2009-01-01 13:34 Henri Fischer
2009-01-01 14:16 ` Teemu Likonen
0 siblings, 1 reply; 5+ messages in thread
From: Henri Fischer @ 2009-01-01 13:34 UTC (permalink / raw)
To: help-gnu-emacs
Hi All,
First of all my best wishes for 2009!!!!
I have two questions.
My Emacs doesn't identify files ending with "*.org" as org-mode files.
I don't want to use a mode identifier at the beginning of my org
files. Does this mean I have to edit my ldefs-boot.el and loaddefs.el?
If org was already part of my Emacs (Carbon), then why doesn't it
recognize the file extension "*.org"?
Kind regards,
Henri
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-mode not recognized as major mode
2009-01-01 13:34 org-mode not recognized as major mode Henri Fischer
@ 2009-01-01 14:16 ` Teemu Likonen
2009-01-01 22:18 ` Samuel Wales
0 siblings, 1 reply; 5+ messages in thread
From: Teemu Likonen @ 2009-01-01 14:16 UTC (permalink / raw)
To: help-gnu-emacs
Henri Fischer (2009-01-01 05:34 -0800) wrote:
> First of all my best wishes for 2009!!!!
Same to you!
> My Emacs doesn't identify files ending with "*.org" as org-mode files.
> I don't want to use a mode identifier at the beginning of my org
> files. Does this mean I have to edit my ldefs-boot.el and loaddefs.el?
You can add a matching filename regexp to auto-mode-alist:
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-mode not recognized as major mode
2009-01-01 14:16 ` Teemu Likonen
@ 2009-01-01 22:18 ` Samuel Wales
2009-01-01 22:23 ` Samuel Wales
2009-01-02 10:19 ` Regexps Teemu Likonen
0 siblings, 2 replies; 5+ messages in thread
From: Samuel Wales @ 2009-01-01 22:18 UTC (permalink / raw)
To: Teemu Likonen; +Cc: help-gnu-emacs
On Thu, Jan 1, 2009 at 07:16, Teemu Likonen <tlikonen@iki.fi> wrote:
> (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
Maybe without the \ \ ' ? Or is that a special thing?
--
For personal gain, myalgic encephalomyelitis denialists are knowingly
causing further suffering and death by grossly corrupting science. Do
you care about the world?
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-mode not recognized as major mode
2009-01-01 22:18 ` Samuel Wales
@ 2009-01-01 22:23 ` Samuel Wales
2009-01-02 10:19 ` Regexps Teemu Likonen
1 sibling, 0 replies; 5+ messages in thread
From: Samuel Wales @ 2009-01-01 22:23 UTC (permalink / raw)
To: Teemu Likonen; +Cc: help-gnu-emacs
Oh, I see that lots of modes use that. Must be a special thing,
instead of $. Never mind :).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Regexps
2009-01-01 22:18 ` Samuel Wales
2009-01-01 22:23 ` Samuel Wales
@ 2009-01-02 10:19 ` Teemu Likonen
1 sibling, 0 replies; 5+ messages in thread
From: Teemu Likonen @ 2009-01-02 10:19 UTC (permalink / raw)
To: Samuel Wales; +Cc: help-gnu-emacs
Samuel Wales (2009-01-01 15:18 -0700) wrote:
> On Thu, Jan 1, 2009 at 07:16, Teemu Likonen <tlikonen@iki.fi> wrote:
>> (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
>
> Maybe without the \ \ ' ? Or is that a special thing?
The \' atom matches with zero-width at the end of string or end of
buffer. As you know $ is a zero-width atom that matches at the end of
line. In theory a filename may contain newlines (in Linux filesystems at
least) and in such situations the $ atom wouldn't necessarily match the
end of the whole filename string.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-01-02 10:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-01 13:34 org-mode not recognized as major mode Henri Fischer
2009-01-01 14:16 ` Teemu Likonen
2009-01-01 22:18 ` Samuel Wales
2009-01-01 22:23 ` Samuel Wales
2009-01-02 10:19 ` Regexps Teemu Likonen
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).