Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (require 'js-beautify)
- (add-to-list 'load-path "~/.emacs.d/jquery-doc")
- (require 'jquery-doc)
- (require 'flymake-jshint)
- (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
- (add-hook 'js2-mode-hook '(lambda ()
- (jquery-doc-setup)
- (local-set-key "\M-t" 'js-beautify)
- (local-set-key (kbd "<f12>") 'flymake-mode)
- (define-key js2-mode-map [(shift f10)] (lambda()(interactive)(jslint-thisfile)))))
- ;; javascript lint
- (defun jslint-thisfile ()
- (interactive)
- (compile (format "jsl -process %s" (buffer-file-name))))
- (provide 'rgr-javascript)
Add Comment
Please, Sign In to add comment