Skip to content
sub edited this page Sep 13, 2010 · 14 revisions

In order to use flymake with jsc follow these steps:

  • add the following code to your .emacs configuration file

;; flymake (require 'flymake)

(defun flymake-javascript-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
’flymake-create-temp-inplace))
(local-file (file-relative-name temp-file
(file-name-directory buffer-file-name))))
(list “/path/to/flymake-javascript” (list local-file))))

(add-to-list ‘flymake-allowed-file-name-masks ’("\\.js\\’"
flymake-javascript-init))

  • create an executable file, flymake-javascript, with the following content

#! /bin/sh jsc -a --flymake $1

Clone this wiki locally