Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1605)

Unified Diff: Tools/Scripts/webkitpy/thirdparty/pylint/elisp/pylint-flymake.el

Issue 18418010: Check in the thirdparty libs needed for webkitpy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/Scripts/webkitpy/thirdparty/pylint/elisp/pylint-flymake.el
diff --git a/Tools/Scripts/webkitpy/thirdparty/pylint/elisp/pylint-flymake.el b/Tools/Scripts/webkitpy/thirdparty/pylint/elisp/pylint-flymake.el
new file mode 100644
index 0000000000000000000000000000000000000000..6313ba5459d636dd9f4a75564b4ef066653e9fc5
--- /dev/null
+++ b/Tools/Scripts/webkitpy/thirdparty/pylint/elisp/pylint-flymake.el
@@ -0,0 +1,15 @@
+;; Configure flymake for python
+(when (load "flymake" t)
+ (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)))
+
+;; Set as a minor mode for python
+(add-hook 'python-mode-hook '(lambda () (flymake-mode)))
« no previous file with comments | « Tools/Scripts/webkitpy/thirdparty/pylint/elisp/pylint.el ('k') | Tools/Scripts/webkitpy/thirdparty/pylint/elisp/startup » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698