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

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

Re: how to define a comment syntax for files having a specific extension


From: Tim X
Subject: Re: how to define a comment syntax for files having a specific extension?
Date: Tue, 03 Apr 2007 18:27:04 +1000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

"gento" <gento_distefano@hotmail.com> writes:

>> You need to create a major mode for those types of files.
>> Check out sample-mode.el
>
> Thank you Stefan.
>
> Is there a simplest way for reaching this scope,
> for example by modifying the ~/.emacs file only?
>

If the only issue is defining what emacs things is a comment, couldn't youjust
modify the syntax table and set the appropriate value to mark the comment
character? 

If not, its *really* easy to define a derived mode. You could derive a specific
mode for these files from text or fundamental mode. There is an example of a
derived mode on the meacs wiki I think (http://www.emacswiki.org).

tim

-- 
tcross (at) rapttech dot com dot au


reply via email to

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