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

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

Re: HTML mode: Change words that cause indention


From: Volkan YAZICI
Subject: Re: HTML mode: Change words that cause indention
Date: Fri, 4 Jul 2008 23:14:05 -0700 (PDT)
User-agent: G2/1.0

On Jul 4, 10:57 pm, address@hidden wrote:
> Hello,
> I'm using a simple template language that is embedded in HTML. Can I
> change the words that cause an indention in Emacs HTML mode? For
> example: indent after {% for whatever in whatever %} and unindent {%
> endfor %}.

See `sgml-indent-line' and `sgml-calculate-indent' functions in lisp/
textmodes/sgml-mode.el in the emacs source tree. Also, a rough look at
the whole of the sgml-mode.el will give your a clear idea. You can add
your customized indentation routines as a minor mode hooked into sgml-
mode.


Regards.


reply via email to

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