Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Formatting Perl code with Emacs

by bojinlund (Priest)
on Nov 07, 2013 at 10:04 UTC ( #1061539=note: print w/ replies, xml ) Need Help??


in reply to Formatting Perl code with Emacs

I am using Emacs and perltidy by adding the lines

# (compile (concat "perltidy " (buffer-name)) nil) # (ediff-files (concat (buffer-name) ".tdy") (buffer-name))
to my Perl scripts.

Putting the cursor at the end of the added lines and entering control-X, control-E will execute perltidy and activate the ediff-files function in Emacs. Then I can select which part of my script I want to be changed.


Comment on Re: Formatting Perl code with Emacs
Download Code
Re^2: Formatting Perl code with Emacs
by isntvoid (Novice) on Nov 07, 2013 at 10:29 UTC
Re^2: Formatting Perl code with Emacs
by LanX (Canon) on Nov 08, 2013 at 00:32 UTC
    Thats a pretty cool idea, thanks for sharing! =)

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061539]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2014-12-26 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (172 votes), past polls