SPUG: tidy in 3 flavors; Perl, HTML, JavaScript

Itay Furman itayf at u.washington.edu
Thu Oct 5 12:30:49 PDT 2006

On Thu, 5 Oct 2006, Michael R. Wolf wrote:

> When _I_ *write* code, I use emacs' built-in cperl-mode, html-mode, and
> java-mode.   I'm mostly happy with them -- they're right there under my
> finger tips, and they happen automagically.
> But this is a *rewrite* (or reformat) job, and I'm lazy (one of 3 virtues).
> I don't want to fat-finger all the code in emacs.

In emacs: marking the whole buffer, or some region, and then
 	'M-x ident-region'
does save me a lot of work.  (After making sure I'm in 
cperl-mode, or whatever appropriate mode.)
There might be some mode-specific functions but I don't remeber 
for sure -- I always use the above.


Itay Furman
   phone	: +972 (0)2 648 1940
   email	: itayf at fastmail.fm

More information about the spug-list mailing list