Permalink
Browse files

flymake

  • Loading branch information...
1 parent 4c70c6c commit 28c25de66c6c635cf2ddc721794d6c9db03ddba4 @jrockway committed Jan 22, 2013
Showing with 42 additions and 0 deletions.
  1. +42 −0 flymake-config.el
View
42 flymake-config.el
@@ -0,0 +1,42 @@
+;;; flymake-config.el --- my flymake configuration
+
+;; Copyright (C) 2013 Jonathan Rockway
+
+;; Author: Jonathan Rockway <jon@jrock.us>
+;; Keywords:
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;;
+
+;;; Code:
+
+(require 'flymake)
+(require 'flymake-cursor)
+
+(defun flymake-pylint-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 "epylint" (list local-file))))
+
+(add-to-list 'flymake-allowed-file-name-masks
+ '("\\.py\\'" flymake-pylint-init))
+
+(provide 'flymake-config)
+;;; flymake-config.el ends here

0 comments on commit 28c25de

Please sign in to comment.