I admit, I’m an emacs philistine. I use it as a text editor and when I’ve got a machine or linux VM that I’m going to be using, I’ll set up “cperl-mode” with syntax colouring. I don’t even bother even creating a tags file to be able to bounce around files from the use of a function.method to its definition.
At an interview yesterday, I mentioned this and asked If my interviewers had ever used eclipse for development and their snorts said it all. So, this girded my loins to look at setting up a more productive emacs environment. So, a quick google gives us:
For a top hit in Google, that’s a bit rubbish.
Cperl’s documentation is here: http://www.emacswiki.org/emacs/CPerlMode. Suggestions that jump out at me from this are:
“For the emacs editor, first mark a region and then pipe it through perltidy. For example, to format an entire file, select it with C-x h and then pipe it with M-1 M-| and then perltidy. The numeric argument, M-1 causes the output from perltidy to replace the marked text. See “GNU Emacs Manual for more information, http://www.gnu.org/manual/emacs-20.3/html_node/emacs_toc.html
Yuk. That’s clunky.
You can access perldoc from within emacs:
In order to use perldoc from Emacs, type
‘M-x cperl-perldoc’, hit Return and type the keyword to look up.
Not sure what that gains. I usually run perldoc in an xterm!
The comments on this go on to suggest:
I know Piers Cawley has done work on refactoctoring code with emacs, but I can’t find recent references to his work.
Finally, a big shout out to Aquamacs on the Mac. I find this to blend well with the Mac environment. GNU emacs on Linux. Don’t even think about Xemacs.
Still not entirely sure there’s anything in here I’ll make use of! Got any suggestions?