summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2007-07-04 14:06:21 +0200
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2007-07-04 14:06:21 +0200
commitbf26f37a3fa4a65c25c7ece90df0d40393ab56ed (patch)
tree1c89b6816733b0579c5e4692e643320c034189c9 /elisp
parent8987b559f243d5c28ae7b15d961d29ddca85ff35 (diff)
downloadpylint-bf26f37a3fa4a65c25c7ece90df0d40393ab56ed.tar.gz
disable keyboard shortcuts, don't use my- as a prefix for a function name
Diffstat (limited to 'elisp')
-rw-r--r--elisp/pylint.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/elisp/pylint.el b/elisp/pylint.el
index 4ec4058..753c679 100644
--- a/elisp/pylint.el
+++ b/elisp/pylint.el
@@ -1,6 +1,6 @@
;; adapted from pychecker for pylint
-(defun my-python-hook ()
+(defun pylint-python-hook ()
(defun pylint ()
"Run pylint against the file behind the current buffer after
checking if unsaved buffers should be saved."
@@ -10,9 +10,9 @@
(command (concat "pylint --output-format=parseable \"" 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)
- (local-set-key [f2] 'previous-error)
- (local-set-key [f3] 'next-error)
+;; (local-set-key [f1] 'pylint)
+;; (local-set-key [f2] 'previous-error)
+;; (local-set-key [f3] 'next-error)
(define-key
py-mode-map
@@ -34,4 +34,4 @@
)
-(add-hook 'python-mode-hook 'my-python-hook)
+(add-hook 'python-mode-hook 'pylint-python-hook)