help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set a file major mode in elisp


From: Peter Dyballa
Subject: Re: How to set a file major mode in elisp
Date: Fri, 2 Nov 2007 22:10:01 +0100


Am 02.11.2007 um 17:54 schrieb Mirko:

I don't want to mess with the diary file format if I can avoid it.

You don't mess with the file format if you add local variables – you just make it clear to GNU Emacs what is obvious for you!

I, for example, make clear that the diary file is in UTF-8:

        ;; Local variables:
        ;; coding: utf-8
        ;; End:

and you can add

        ;; mode: diary

--
Greetings

  Pete

...And always remember the last words of my grandfather, who said:
     “A truck!”          — Emo Phillips






reply via email to

[Prev in Thread] Current Thread [Next in Thread]