<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Simon Holroyd wrote:
<blockquote cite="mid:14201038.post@talk.nabble.com" type="cite">
<pre wrap="">I've just started using TM, previously I used emacs. When I typed a perl
line like:
my $p = Base::Sub->new
(id => 1234,
name => "test");
I would only have to hit tab on each new line to move the cursor to below
the appropriate place on the above line i.e. it auto formatted the code for
me. TM doesn't seem to do this, which is annoying the hell out of me. Can
someone help please?
</pre>
</blockquote>
<br>
Hmmm... It works fine for me, but I use a different indentation
style. I tried typing in that fragment you sent, and this is how TM
formatted it for me:<br>
<br>
<pre>my $p = Base::Sub->new
(id => 1234,
name => "test");
</pre>
<br>
In case the mailer screws up the formatting, the second line is flush
with the left margin, and the third line starts with the cursor
indented by one (soft) tab stop.<br>
<br>
Normally I'd break the line differently, leaving the opening
parenthesis on the first line.<br>
<br>
<pre>my $p = Base::Sub->new(
id => 1234,
name => "test");
</pre>
<br>
Both the 2nd and 3rd lines and indented one tab stop. In both cases,
if I hit another return and continue to type, the 4th line is also
indented (which it shouldn't be). So the auto-formatting does work,
though it's pretty dependent on your idea of style matching that of the
the bundle author. There's definitely room for improvement.<br>
<br>
(And a stupid is-it-plugged-in question: You *are* in Perl mode, right?)<br>
<br>
<br>
<div class="moz-signature">-- <br>
<address
style="font-family: sans-serif; font-style: italic; font-size: smaller;">
Steve King<br>
Sr. Software Engineer<br>
Arbor Networks<br>
+1 734 821 1461<br>
<a href="http://www.arbornetworks.com/">www.arbornetworks.com</a>
</address>
</div>
</body>
</html>