Created
March 1, 2011 05:37
-
-
Save ianjosephwilson/848678 to your computer and use it in GitHub Desktop.
Fixed JsLint Hook
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
; A better solution, just ignore irregular case extensions completely. | |
(defun jslint-hook () | |
(let* ((filename (buffer-file-name)) | |
(suffix (file-name-extension filename))) | |
(if (and filename (string= suffix "js")) | |
(call-interactively 'compile)))) | |
(add-hook 'after-save-hook 'jslint-hook) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment