Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Favorite Hacks in Emacs

by Your Mother (Canon)
on May 13, 2009 at 05:39 UTC ( #763671=note: print w/ replies, xml ) Need Help??


in reply to Favorite Hacks in Emacs

I hope these are pasted right.

(global-set-key "\M-3" 'script-blank) (global-set-key "\M-4" 'subroutine-blank) (define-skeleton script-blank "Insert a blank script." nil "#!/usr/bin/perl \n use strict; use warnings; # et cetera... Looooooong list of modules which # are easier to cut when unused than type otherwise. \n _ \n \n "exit 0; __DATA__ " ) ;;-------------------------------------------------------------------- (define-skeleton subroutine-blank "Insert a blank sub." nil "sub " _ " {" \n \n \n \n "}" )


Comment on Re: Favorite Hacks in Emacs
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-12-28 06:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (179 votes), past polls