Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Checkdoc compliance

  • Loading branch information...
commit 705308fcbdf1d665fb9cffceb30245fff071d919 1 parent 89270e0
Steve Purcell authored

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. +5 2 flymake-coffee.el
7 flymake-coffee.el
@@ -11,12 +11,15 @@
11 11 ;; Usage: (add-hook 'coffee-mode-hook 'flymake-coffee-load)
12 12 (require 'flymake)
13 13
  14 +;;; Code:
  15 +
14 16 ;; Doesn't strictly require coffee-mode, but will use 'coffee-command if set
15 17
16 18 (defconst flymake-coffee-err-line-patterns
17 19 '(("\\(Error: In \\([^,]+\\), .+ on line \\([0-9]+\\).*\\)" 2 3 nil 1)))
18 20
19 21 (defun flymake-coffee-init ()
  22 + "Construct a command that flymake can use to check coffeescript source."
20 23 (list (if (boundp 'coffee-command)
21 24 coffee-command
22 25 "coffee")
@@ -28,8 +31,8 @@
28 31 "Configure flymake mode to check the current buffer's coffeescript syntax.
29 32
30 33 This function is designed to be called in `coffee-mode-hook'; it
31   -does not alter flymake's global configuration, so `flymake-mode'
32   -alone will not suffice."
  34 +does not alter flymake's global configuration, so function
  35 +`flymake-mode' alone will not suffice."
33 36 (interactive)
34 37 (set (make-local-variable 'flymake-allowed-file-name-masks) '(("." flymake-coffee-init)))
35 38 (set (make-local-variable 'flymake-err-line-patterns) flymake-coffee-err-line-patterns)

0 comments on commit 705308f

Please sign in to comment.
Something went wrong with that request. Please try again.