all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: help-gnu-emacs@gnu.org
Subject: Re: perl indentation
Date: Tue, 02 Dec 2008 08:44:29 -0600	[thread overview]
Message-ID: <863ah6bprm.fsf@lifelogs.com> (raw)
In-Reply-To: 5a139526-7f15-48b0-8460-7ceacdf70106@v5g2000prm.googlegroups.com

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	other threads:[~2008-12-02 14:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-01 16:13 perl indentation Jagadeesh
2008-12-01 19:11 ` aartist
2008-12-02  4:53   ` Jagadeesh
2008-12-02 14:44     ` Ted Zlatanov [this message]
2008-12-02 15:32     ` Phil Carmody
2008-12-06  4:45       ` Jagadeesh
2008-12-06  7:14         ` Teemu Likonen
  -- strict thread matches above, loose matches on Subject: below --
2008-12-08  9:35 Bourgneuf Francois
2003-08-07 18:44 Perl Indentation Aaron Lenfestey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=863ah6bprm.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.