-
Notifications
You must be signed in to change notification settings - Fork 1
flymake
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