From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luis Kornblueh Newsgroups: gmane.emacs.help Subject: indentation mode of custom file format Date: Fri, 15 Jun 2012 22:45:24 +0200 Message-ID: <4FDB9EE4.8040601@zmaw.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339812993 14539 80.91.229.3 (16 Jun 2012 02:16:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2012 02:16:33 +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 Jun 16 04:16:33 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SfiYx-0003Fz-AK for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Jun 2012 04:16:31 +0200 Original-Received: from localhost ([::1]:40537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfiYx-0004Ec-4a for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jun 2012 22:16:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfdOb-0002zY-OW for help-gnu-emacs@gnu.org; Fri, 15 Jun 2012 16:45:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfdOa-0000Wy-06 for help-gnu-emacs@gnu.org; Fri, 15 Jun 2012 16:45:29 -0400 Original-Received: from mail1.zmaw.de ([136.172.65.2]:33338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfdOZ-0000Sx-PV for help-gnu-emacs@gnu.org; Fri, 15 Jun 2012 16:45:27 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail1.zmaw.de (Postfix) with ESMTP id 31F53140A0 for ; Fri, 15 Jun 2012 22:45:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at jake.zmaw.de Original-Received: from mailer.zmaw.de ([136.172.65.46]) by localhost (mail1.zmaw.de [136.172.65.2]) (amavisd-new, port 10026) with ESMTP id dFuKRp6dz-Gq for ; Fri, 15 Jun 2012 22:45:24 +0200 (CEST) Original-Received: from cinglung.fritz.box (pD951F42A.dip.t-dialin.net [217.81.244.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailer.zmaw.de (Postfix) with ESMTPSA id 87072B6054 for ; Fri, 15 Jun 2012 22:45:24 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120601 Thunderbird/13.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 136.172.65.2 X-Mailman-Approved-At: Fri, 15 Jun 2012 22:16:26 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85261 Archived-At: Hello, I need some help. I have no idea on how to program in Lisp. I managed to get a highlighting mode working for an simple file format as derived mode of sh-mode, but do not manage at all to get an indentation mode. The file format looks like: # comments text text [level1] text text [[level2]] text [[[level3]]] text # comment [[level2]] text [level1] text {% comment %} [[level2]] text """ text text """ [[[level3]]] text and should be indented with spaces as shown. It would be great, if someone could help me. I found plenty of examples with opening/closing structures, but none, with such an format. Thanks a lot, Luis