Created
August 16, 2015 04:34
-
-
Save foxiepaws/3597e776fd261ff088cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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 perlcritic () | |
| "" | |
| (interactive) | |
| (if | |
| (string-match "Perl|CPerl" (symbol-name (buffer-local-value 'major-mode (current-buffer)))) | |
| (compile (concat "perlc --critic " (buffer-file-name))) | |
| (error "not a perl file. (or an unrecognised perl mode)") | |
| ) | |
| ) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment