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)
        ))