<?xml version="1.0" encoding="windows-1252"?>
<node id="633399" title="Emacs and perltidy-mode" created="2007-08-17 17:35:33" updated="2007-08-17 13:35:33">
<type id="115">
perlquestion</type>
<author id="95704">
silent11</author>
<data>
<field name="doctext">
I'm not a recent convert to Emacs, however I have yet to get too deep into its internals. After one day of using [http://www.cpan.org/modules/by-module/LWP/JJORE/perltidy-mode-0.02.readme|perltidy-mode] I've become very fond of it. With every save, the file gets run through perl tidy, reformatting and beautifying my code.&lt;p&gt;

The problem is that with each save (and reformatting) I loose  some/most of the syntax highlighting. I have to M-x cperl-mode after each save to re-highlight the source code.

&lt;p&gt;

Has anyone else run into this before or have any suggestions?&lt;p&gt; I want to keep cperl-mode (syntax highlighting) and continue to have the benefit of having my code *pretty* as well .

&lt;p&gt;TIA.&lt;p&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-95704"&gt;
&lt;br&gt;&lt;br&gt;
-silent11&lt;br&gt;

&lt;/div&gt;&lt;/div&gt;</field>
</data>
</node>
