Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: The shortest distance between cperl-mode and productivity

by hagus (Monk)
on May 05, 2002 at 23:51 UTC ( [id://164191]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (defun run-buffer (args)
      (interactive "sArguments to script: ")
      (save-buffer)
      (shell-command (concat (buffer-file-name (current-buffer)) " " args)
    +))
    
  2. or download this
    (defun hagus-perl-indent-setup ()
      (setq cperl-extra-newline-before-brace t)
    ...
      (cperl-set-style "linux"))
    
    (add-hook 'cperl-mode-hook 'hagus-perl-indent-setup)
    
  3. or download this
    (defun indent-and-align (beginning end)
      (interactive "r")
    ...
        (indent-region beginning end nil)
        (align beginning end)
        ))
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found