<?xml version="1.0" encoding="windows-1252"?>
<node id="442175" title="Re^2: Desparately seeking a bilingual vim/Emacs expert" created="2005-03-24 14:50:43" updated="2005-08-13 18:02:51">
<type id="11">
note</type>
<author id="107600">
TheDamian</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;
Modifying this to output Data::Dumper stuff (good idea) would be straight-forward.
&lt;/i&gt;&lt;/blockquote&gt;

Here's my attempt. I'd be very grateful if someone who knows Emacs could actually try it.

&lt;code&gt;
(defun perl-dbg (name)
  "Insert a debugging print statement"
  (insert "use Data::Dumper qw( Dumper );\nwarn Dumper [ ]\n")
  (search-backward "[ ")
&lt;/code&gt;

&lt;blockquote&gt;&lt;i&gt;
I'm not sure what document templates are for.
&lt;/i&gt;&lt;/blockquote&gt;

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.

&lt;blockquote&gt;&lt;i&gt;
For indenting, I have this inside (custom-set-variables):
&lt;/i&gt;&lt;/blockquote&gt;

I'm guessing:

&lt;code&gt;
 '(cperl-close-paren-offset -4)
&lt;/code&gt;

Outdent 4 columns on a closing paren?&lt;br&gt;&lt;br&gt;

&lt;code&gt;
 '(cperl-continued-statement-offset 2)
&lt;/code&gt;

Indent 2 columns when a statement wraps?&lt;br&gt;&lt;br&gt;


&lt;code&gt;
 '(cperl-indent-level 4)
&lt;/code&gt;

Indent four columns per indentation level?&lt;br&gt;&lt;br&gt;

&lt;code&gt;
 '(cperl-indent-parens-as-block t)
&lt;/code&gt;

Indent parens like blocks?&lt;br&gt;&lt;br&gt;


&lt;code&gt;
 '(cperl-label-offset 0)
&lt;/code&gt;

Put labels in the zeroth column?&lt;br&gt;&lt;br&gt;

&lt;code&gt;
 '(cperl-tab-always-indent t)
&lt;/code&gt;

Convert tabs to spaces?&lt;br&gt;&lt;br&gt;

&lt;p&gt;Could someone knowledgeable confirm (or correct) those guesses?

</field>
<field name="root_node">
441686</field>
<field name="parent_node">
442036</field>
</data>
</node>
