help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: perl indentation


From: Ted Zlatanov
Subject: Re: perl indentation
Date: Tue, 02 Dec 2008 08:44:29 -0600
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

On Mon, 1 Dec 2008 20:53:45 -0800 (PST) Jagadeesh <mnjagadeesh@gmail.com> 
wrote: 

J> On Dec 2, 12:11 am, aartist <aart...@gmail.com> wrote:
>> On Dec 1, 11:13 am, Jagadeesh <mnjagade...@gmail.com> wrote:
>> 
>> > Hi,
>> > Again this is a newbie question.
>> 
>> > how do I indent perl code? Is there any key?
>> 
>> > Thanks
>> > Jagadeesh
>> 
>> M-x cperl-mode

J> Thanks for the reply.
J> Its not indenting it. when I do M-x cperl-mode, there is no effect.

Start Emacs without any init files:

emacs -q test.pl

Then do

M-x cperl-mode

Type in a short program, e.g.

#!/usr/bin/perl

if (scalar @ARGV)
{
 print "indentation test here\n";
}

Does line 5 not indent when you hit TAB?  It does for me.

Ted


reply via email to

[Prev in Thread] Current Thread [Next in Thread]