silent11 has asked for the wisdom of the Perl Monks concerning the following question:
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.
Has anyone else run into this before or have any suggestions?
I want to keep cperl-mode (syntax highlighting) and continue to have the benefit of having my code *pretty* as well .
TIA.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Emacs and perltidy-mode
by diotalevi (Canon) on Aug 17, 2007 at 22:50 UTC | |
Perhaps you aren't properly associating cperl-mode with your file. Here's some lisp-fu for you. The file is also available at http://diotalevi.isa-geek.net/~josh/emacs/my-cperl.el
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊ | [reply] [d/l] |