Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Favorite Hacks in Emacs

by Your Mother (Chancellor)
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?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2015-11-29 16:52 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls