Commits

Anonymous committed 638a940

add gjslint flymake

Comments (0)

Files changed (1)

       (list "/Users/brett/lib/pycheckers.py" (list local-file))))
   ;; *Only* allow python - flymake ships with a bunch of shit turned on
   (setq flymake-allowed-file-name-masks
-               '(("\\.py\\'" flymake-pyflakes-init))))
+               '(("\\.py\\'" flymake-pyflakes-init)))
+
+  (defun flymake-gjslint-init ()
+    "Initialize flymake for gjslint"
+    (let* ((temp-file (flymake-init-create-temp-buffer-copy
+                       'flymake-create-temp-inplace)))
+      (list "gjslint" (list temp-file "--nosummary"))))
+
+  (add-to-list 'flymake-allowed-file-name-masks
+             '(".+\\.js$"
+               flymake-gjslint-init
+               flymake-simple-cleanup
+               flymake-get-real-file-name))
+
+  (add-to-list 'flymake-err-line-patterns
+               '("^Line \\([[:digit:]]+\\), E:[[:digit:]]+: "
+                 nil 1 nil))
+  )
 
 (eval-after-load 'ruby-mode
   '(progn
               (local-file (file-relative-name
                            temp-file
                            (file-name-directory buffer-file-name))))
-         (list "ruby" (list "-c" local-file))))
+         (list "ruby" (list "-wc" local-file))))
 
      (push '(".+\\.rb$" flymake-ruby-init) flymake-allowed-file-name-masks)
      (push '("Rakefile$" flymake-ruby-init) flymake-allowed-file-name-masks)
                                   'flymake-display-err-menu-for-current-line)
                    (flymake-mode t))))))
 
+
 (add-hook 'find-file-hook 'flymake-find-file-hook)
 (setq flymake-log-level 0)
 (setq flymake-gui-warnings-enabled nil)
 (global-set-key (kbd "C-x C-b") 'ibuffer)
 (autoload 'ibuffer "ibuffer" "List buffers." t)
 
+(require 'tramp)
+(setq tramp-debug-buffer t)
+(setq tramp-verbose 10)
+
 ;; Keybindings
 (global-set-key (kbd "<C-tab>") 'bury-buffer)
 (custom-set-variables