* How do you customize a Major Mode?
@ 2006-06-14 6:22 Robert Jeffrey Miesen
2006-06-14 16:00 ` Kevin Rodgers
0 siblings, 1 reply; 3+ messages in thread
From: Robert Jeffrey Miesen @ 2006-06-14 6:22 UTC (permalink / raw)
Hi all.
I would like to customize how a couple of major mode work (such as CSS
mode and HTML mode (NOT "HTML helper" mode). How would one go about doing
such a thing? Also, how would one set the default major mode for a certain
class of files?
Thanks in advance.
--
In Him
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.2866.1150266092.9609.help-gnu-emacs@gnu.org>]
* Re: How do you customize a Major Mode?
[not found] <mailman.2866.1150266092.9609.help-gnu-emacs@gnu.org>
@ 2006-06-14 8:46 ` Mathias Dahl
0 siblings, 0 replies; 3+ messages in thread
From: Mathias Dahl @ 2006-06-14 8:46 UTC (permalink / raw)
Robert Jeffrey Miesen <bobby_miesen@yahoo.com> writes:
> I would like to customize how a couple of major mode work (such as CSS
> mode and HTML mode (NOT "HTML helper" mode). How would one go about doing
> such a thing?
It depends on what changes you need to do. A general answer could be
"Open html-mod.el and change it", but I won't be that mean... :) Some
people just want to change the "syntax hilighting" (font lock in Emacs
lingua), some want to change the behavior of some function. Maybe if
you describe in more detail what you want to change, people can make
suggestions?
> Also, how would one set the default major mode for a certain
> class of files?
This is how I add the sql, ins, cre and upg file extensions to use
sql-mode:
(setq auto-mode-alist
(cons '("\\.\\(sql\\|ins\\|cre\\|upg\\)$" . sql-mode) auto-mode-alist))
/Mathias
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-06-14 16:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-14 6:22 How do you customize a Major Mode? Robert Jeffrey Miesen
2006-06-14 16:00 ` Kevin Rodgers
[not found] <mailman.2866.1150266092.9609.help-gnu-emacs@gnu.org>
2006-06-14 8:46 ` Mathias Dahl
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).