From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Carmody Newsgroups: gmane.emacs.help Subject: Re: perl indentation Date: Tue, 02 Dec 2008 17:32:13 +0200 Organization: Saunalahti Customer Message-ID: <87myfevbia.fsf@nonospaz.fatphil.org> References: <5a139526-7f15-48b0-8460-7ceacdf70106@v5g2000prm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228232588 8979 80.91.229.12 (2 Dec 2008 15:43:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2008 15:43:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 16:44:11 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 1L7XPv-00008y-TC for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Dec 2008 16:44:04 +0100 Original-Received: from localhost ([127.0.0.1]:50418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7XOl-0004J4-KX for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Dec 2008 10:42:51 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!feeder2.news.saunalahti.fi!reader1.news.saunalahti.fi!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:nBJyEo25q40KqldHdow8fU/liOE= Original-Lines: 33 Original-NNTP-Posting-Host: 83.143.57.195 Original-X-Complaints-To: newsmaster@saunalahti.com Original-X-Trace: reader1.news.saunalahti.fi 1228231889 83.143.57.195 (Tue, 02 Dec 2008 17:31:29 EET) Original-NNTP-Posting-Date: Tue, 02 Dec 2008 17:31:29 EET Original-Xref: news.stanford.edu gnu.emacs.help:164995 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:60319 Archived-At: Jagadeesh writes: > On Dec 2, 12:11 am, aartist wrote: >> On Dec 1, 11:13 am, Jagadeesh wrote: >> >> > Hi, >> > Again this is a newbie question. >> >> > how do I indent perl code? Is there any key? >> >> > Thanks >> > Jagadeesh >> >> M-x cperl-mode > > Thanks for the reply. > Its not indenting it. when I do M-x cperl-mode, there is no effect. It's not designed to automatically re-indent the current file. Any new code you enter will be indented according to style, as well any line you press 'TAB' on. To set the particular style, use cperl-set-style - my personal favourite is 'C++', even though it has problems with multi-line lists. There's also 'perl-mode', which again will not automatically re-intent any of your buffer. It's a bit less colourful, but just as functional as 'cperl-mode'. Phil -- I tried the Vista speech recognition by running the tutorial. I was amazed, it was awesome, recognised every word I said. Then I said the wrong word ... and it typed the right one. It was actually just detecting a sound and printing the expected word! -- pbhj on /.