Created
July 1, 2012 00:59
-
-
Save soh-i/3026323 to your computer and use it in GitHub Desktop.
perltidy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun perltidy-region () | |
"Run perltidy on the current region." | |
(interactive) | |
(save-excursion | |
(shell-command-on-region (point) (mark)"perltidy -q" nil t))) | |
(defun perltidy-defun() | |
"Run perltidy on the current defun." | |
(interactive) | |
(save-excursion (mark-defun) | |
(perltidy-region))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment