Skip to content

Instantly share code, notes, and snippets.

@ianjosephwilson
Created March 1, 2011 05:37
Show Gist options
  • Save ianjosephwilson/848678 to your computer and use it in GitHub Desktop.
Save ianjosephwilson/848678 to your computer and use it in GitHub Desktop.
Fixed JsLint Hook
; 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