From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian.Lindner@xgm.de Newsgroups: gmane.emacs.help Subject: Re: HTML mode: Change words that cause indention Date: Wed, 9 Jul 2008 04:48:27 -0700 (PDT) Organization: http://groups.google.com Message-ID: <23681ef4-916b-425d-8388-e002ddc2870d@m3g2000hsc.googlegroups.com> References: <4662ba57-78ca-4845-83c8-f8baa2464627@p25g2000hsf.googlegroups.com> <110b716c-662f-40c2-8799-adff51740308@j22g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215607249 10642 80.91.229.12 (9 Jul 2008 12:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jul 2008 12:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 09 14:41:34 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KGYzC-0004Li-FO for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jul 2008 14:41:30 +0200 Original-Received: from localhost ([127.0.0.1]:58651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGYyK-0008Ts-LH for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jul 2008 08:40:36 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m3g2000hsc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 138.246.7.185 Original-X-Trace: posting.google.com 1215604107 26402 127.0.0.1 (9 Jul 2008 11:48:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 9 Jul 2008 11:48:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m3g2000hsc.googlegroups.com; posting-host=138.246.7.185; posting-account=6QUiowkAAAD0vSyXppJonpT_391Sn3wN User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:1.9) Gecko/2008061004 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159989 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55339 Archived-At: On 5 Jul., 08:14, Volkan YAZICI wrote: > On Jul 4, 10:57 pm, Florian.Lind...@xgm.de 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. Ok, that sound like it is far beyond my knowledge... ;-)