From bf26f37a3fa4a65c25c7ece90df0d40393ab56ed Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Wed, 4 Jul 2007 14:06:21 +0200 Subject: disable keyboard shortcuts, don't use my- as a prefix for a function name --- elisp/pylint.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'elisp') 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) -- cgit v1.2.1