Skip to content

Instantly share code, notes, and snippets.

@rlb3
Created June 12, 2009 15:11
Show Gist options
  • Save rlb3/128694 to your computer and use it in GitHub Desktop.
Save rlb3/128694 to your computer and use it in GitHub Desktop.
(defun perltidy ()
(interactive)
(save-excursion
(mark-whole-buffer)
(shell-command-on-region (point) (mark) "perltidy -q" nil t)
(message "Tidied")))
(global-set-key "\C-c t" 'perltidy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment