note
TheDamian
<blockquote><i>
Modifying this to output Data::Dumper stuff (good idea) would be straight-forward.
</i></blockquote>
Here's my attempt. I'd be very grateful if someone who knows Emacs could actually try it.
<code>
(defun perl-dbg (name)
"Insert a debugging print statement"
(insert "use Data::Dumper qw( Dumper );\nwarn Dumper [ ]\n")
(search-backward "[ ")
</code>
<blockquote><i>
I'm not sure what document templates are for.
</i></blockquote>
The idea is that you hit a key, and the editor pastes in a template from another file.
Any suggestions for how to do that would be greatly appreciated.
<blockquote><i>
For indenting, I have this inside (custom-set-variables):
</i></blockquote>
I'm guessing:
<code>
'(cperl-close-paren-offset -4)
</code>
Outdent 4 columns on a closing paren?<br><br>
<code>
'(cperl-continued-statement-offset 2)
</code>
Indent 2 columns when a statement wraps?<br><br>
<code>
'(cperl-indent-level 4)
</code>
Indent four columns per indentation level?<br><br>
<code>
'(cperl-indent-parens-as-block t)
</code>
Indent parens like blocks?<br><br>
<code>
'(cperl-label-offset 0)
</code>
Put labels in the zeroth column?<br><br>
<code>
'(cperl-tab-always-indent t)
</code>
Convert tabs to spaces?<br><br>
<p>Could someone knowledgeable confirm (or correct) those guesses?
441686
442036