From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Alex Braumann" Newsgroups: gmane.emacs.help Subject: Re: emacs: indent automatically on c, c++, php comments Date: Sat, 13 Sep 2003 15:38:38 GMT Organization: privat Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1063468073 6579 80.91.224.253 (13 Sep 2003 15:47:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2003 15:47:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 13 17:47:51 2003 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 19yCcp-0000vt-00 for ; Sat, 13 Sep 2003 17:47:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19yCcD-0000NI-Tm for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Sep 2003 11:47:13 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.news.nacamar.de!newsfeed01.chello.at!news.chello.at.POSTED!53ab2750!not-for-mail User-Agent: Pan/0.13.4 (She had eyes like strange sins.) Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 80.110.76.199 Original-X-Complaints-To: abuse@news.chello.at Original-X-Trace: news.chello.at 1063467518 80.110.76.199 (Sat, 13 Sep 2003 17:38:38 MEST) Original-NNTP-Posting-Date: Sat, 13 Sep 2003 17:38:38 MEST Original-Xref: shelby.stanford.edu gnu.emacs.help:116585 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:12506 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12506 On Sat, 13 Sep 2003 13:36:52 +0000, Alan Mackenzie wrote: >> (defun my-php-mode-hook ( ) >> (setq comment-column 30)) >> (add-hook 'c++-mode-hook 'my-php-mode-hook) > > It's your third line that's at fault. > > (add-hook 'c++-mode-hook 'my-php-mode-hook) says "Add the function > my-php-mode-hook to the list of functions which is called whenever C++ > MODE is started." > > Replace "c++-mode-hook" with "php-mode-hook", giving this: (add-hook > 'php-mode-hook 'my-php-mode-hook) > > [Or, if you'd already written that and merely made a typo when composing > your article (it happens to the best of us) come back again!] > > It has been a typo :) so, here I am!