pylint tested.
This commit is contained in:
parent
6ae81bdac7
commit
1a0822a331
|
@ -179,16 +179,17 @@ binding for Kuso IDE django plugin"
|
||||||
(defun pylint-check-current-buffer ()
|
(defun pylint-check-current-buffer ()
|
||||||
"Run pylint on current buffer."
|
"Run pylint on current buffer."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let (cbuffer-file pylint-buffer)
|
(let (cbuffer-file pylint-buffer commandp)
|
||||||
(setq cbuffer-file (buffer-file-name))
|
(setq cbuffer-file (buffer-file-name))
|
||||||
(if (string cbuffer-file)
|
(if (stringp cbuffer-file)
|
||||||
(progn
|
(progn
|
||||||
(setq pylint-buffer (get-buffer-create "*Pylint*"))
|
(setq pylint-buffer (get-buffer-create "*Pylint*"))
|
||||||
(ansi-color-for-comint-mode-on)
|
(ansi-color-for-comint-mode-on)
|
||||||
(switch-to-buffer pylint-buffer)
|
(switch-to-buffer pylint-buffer)
|
||||||
(add-hook 'after-change-functions 'buffer-change-colorizing t t)
|
(add-hook 'after-change-functions 'buffer-change-colorizing t t)
|
||||||
(setq fullcommand (concat "-f colorized " cbuffer-file))
|
(setq fullcommand (concat "pylint -f colorized " cbuffer-file))
|
||||||
(setq commandp (apply 'make-comint-in-buffer "pylint" pylint-buffer "pylint" nil (list fullcommand command)))
|
(setq commandp (start-process-shell-command "pylint" pylint-buffer fullcommand))
|
||||||
|
;;(setq commandp (apply 'make-comint-in-buffer "pylint" pylint-buffer "pylint" nil (list fullcommand)))
|
||||||
|
|
||||||
)
|
)
|
||||||
(message "This buffer did not visit any file.")
|
(message "This buffer did not visit any file.")
|
||||||
|
|
Loading…
Reference in New Issue