diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2008-03-27 12:16:00 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2008-03-27 12:16:00 +0100 |
commit | 6fbbe18d627d451fd25ea815a612298207c341af (patch) | |
tree | 499bc58b3cf7190b4cc35cc25f774968066f9728 /elisp | |
parent | 78284272bb632b1b3f28714c4de54c2fae12669e (diff) | |
download | pylint-git-6fbbe18d627d451fd25ea815a612298207c341af.tar.gz |
backported Yaroslav Halchenko patches
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/pylint.el | 24 | ||||
-rw-r--r-- | elisp/startup | 2 |
2 files changed, 24 insertions, 2 deletions
diff --git a/elisp/pylint.el b/elisp/pylint.el index 14960e946..5862a2e3a 100644 --- a/elisp/pylint.el +++ b/elisp/pylint.el @@ -1,5 +1,27 @@ (require 'compile) +;; +;; Modifications done by Yarosav O. Halchenko (2008): +;; - enable user-visible variables +;; distributed under the same copyright/license terms as +;; pylint itself +;; +(require 'compile) + +;; user definable variables +;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv + +(defgroup pylint nil + "Emacs support for the Pylint Python checker" + :group 'languages + :prefix "pylint-") + +(defcustom pylint-options "--output-format=parseable" + "*Command line options to be used with pylint call" + :type 'string + :group 'pylint) + + ;; adapted from pychecker for pylint (defun pylint-python-hook () (defun pylint () @@ -8,7 +30,7 @@ (interactive) (let* ((file (buffer-file-name (current-buffer))) - (command (concat "pylint --output-format=parseable \"" file "\""))) + (command (concat "pylint " pylint-options " \"" file "\""))) (save-some-buffers (not compilation-ask-about-save) nil) ; save files. (compile-internal command "No more errors or warnings" "pylint"))) ;; (local-set-key [f1] 'pylint) diff --git a/elisp/startup b/elisp/startup index ad9d07188..fd40b427e 100644 --- a/elisp/startup +++ b/elisp/startup @@ -12,6 +12,6 @@ ;; installed in a subdirectory of the respective site-lisp directory. ;; We have to add this to the load-path: (setq load-path (cons (concat "/usr/share/" - (symbol-name flavor) + (symbol-name debian-emacs-flavor) "/site-lisp/%PACKAGE%") load-path)) (load-library "pylint") |