From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Emory Smith Newsgroups: gmane.emacs.help Subject: Re: indentation issues when editing a PHP file Date: Fri, 26 Mar 2004 23:29:51 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <2763538C-7FB8-11D8-8BE7-000A958A3AF4@mac.com> References: <20040326173451.6525.qmail@web13004.mail.yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1080369182 25866 80.91.224.253 (27 Mar 2004 06:33:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 Mar 2004 06:33:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 27 07:32:53 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B77NF-0001YK-00 for ; Sat, 27 Mar 2004 07:32:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B77Ln-0003Of-0e for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Mar 2004 01:31:23 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B77L4-0003I2-4e for help-gnu-emacs@gnu.org; Sat, 27 Mar 2004 01:30:38 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B77KW-0002Vq-0k for help-gnu-emacs@gnu.org; Sat, 27 Mar 2004 01:30:35 -0500 Original-Received: from [17.250.248.84] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B77KV-0002QP-8b for help-gnu-emacs@gnu.org; Sat, 27 Mar 2004 01:30:03 -0500 Original-Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id i2R6UFuO028900; Fri, 26 Mar 2004 22:30:15 -0800 (PST) Original-Received: from [192.168.254.4] (home-ppp-231.colorado.edu [198.11.26.231]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 3.0) with ESMTP id i2R6Tt1m022255; Fri, 26 Mar 2004 22:29:56 -0800 (PST) In-Reply-To: <20040326173451.6525.qmail@web13004.mail.yahoo.com> Original-To: Saifi Khan X-Mailer: Apple Mail (2.613) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 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 Xref: main.gmane.org gmane.emacs.help:17657 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17657 i had that problem for some time and somehow it went away, though i cant get rid of it in "php-html-helper-mode". if thats what youre using, try just "php-mode" (M-x php-mode). thats currently working for me (and its a good incentive to avoid html in youre php...) also maybe the php-version (mine is 1.1.0). please let me know if you figure it out in case i run into it again myself. On Mar 26, 2004, at 10:34 AM, Saifi Khan wrote: > Hi: > > > When editing a PHP file, the '{' curly brace > positions itself as indicated below. > > > class Log > { > function log( $msg ) > ...{ > ...} > } > > the dots (.) are for indicating the spaces. > > > The following indentation style is what I would like to see. > > > class Log > { > function log( $msg ) > { > } > } > > > I have spent sometime looking at the .emacs file, indentation options > and other mails on the mailing list. > > > I have been able to setup CCmode for C, C++ and Java, > however this just beats me. > > What options should I place in my php-hook-function ? > I will appreciate suggestions to solve this problem. > > > thanks > Saifi. > > Ps. please see the attached .emacs file > > __________________________________ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on time. > http://taxes.yahoo.com/filing.html list>_______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs