From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Volkan YAZICI Newsgroups: gmane.emacs.help Subject: Re: HTML mode: Change words that cause indention Date: Fri, 4 Jul 2008 23:14:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: <110b716c-662f-40c2-8799-adff51740308@j22g2000hsf.googlegroups.com> References: <4662ba57-78ca-4845-83c8-f8baa2464627@p25g2000hsf.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 1215240059 30098 80.91.229.12 (5 Jul 2008 06:40:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jul 2008 06:40:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 05 08:41:45 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 1KF1Sh-00016V-Uw for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Jul 2008 08:41:36 +0200 Original-Received: from localhost ([127.0.0.1]:55875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KF1Rr-000767-4U for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Jul 2008 02:40:43 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!j22g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 78.167.194.110 Original-X-Trace: posting.google.com 1215238446 4546 127.0.0.1 (5 Jul 2008 06:14:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 5 Jul 2008 06:14:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j22g2000hsf.googlegroups.com; posting-host=78.167.194.110; posting-account=xozGQQoAAAD99EQH9srmwM1ajggyokYW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.14) Gecko/20080404 Iceweasel/2.0.0.14 (Debian-2.0.0.14-0etch1), gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159906 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:55257 Archived-At: 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. Regards.