all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phil Carmody <thefatphil_demunged@yahoo.co.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: perl indentation
Date: Tue, 02 Dec 2008 17:32:13 +0200	[thread overview]
Message-ID: <87myfevbia.fsf@nonospaz.fatphil.org> (raw)
In-Reply-To: 5a139526-7f15-48b0-8460-7ceacdf70106@v5g2000prm.googlegroups.com

Jagadeesh <mnjagadeesh@gmail.com> writes:
> 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
>
> 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 /.


  parent reply	other threads:[~2008-12-02 15:32 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
2008-12-02 15:32     ` Phil Carmody [this message]
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=87myfevbia.fsf@nonospaz.fatphil.org \
    --to=thefatphil_demunged@yahoo.co.uk \
    --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.