From 3398a4aee71874478ec1bfdefbe7f1bed83cb05c Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Tue, 18 Apr 2006 22:34:54 +0000 Subject: (python-mode): Add support for hs-minor-mode. --- lisp/progmodes/python.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lisp/progmodes/python.el') diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index f110828d602..8ae94df5ea3 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1744,6 +1744,14 @@ lines count as headers. #'python-eldoc-function) (add-hook 'eldoc-mode-hook '(lambda () (run-python nil t)) nil t) ; need it running + (unless (assoc 'pyhon-mode hs-special-modes-alist) + (setq + hs-special-modes-alist + (cons (list + 'python-mode "^\\s-*def\\>" nil "#" + (lambda (arg)(python-end-of-defun)(skip-chars-backward " \t\n")) + nil) + hs-special-modes-alist))) (if (featurep 'hippie-exp) (set (make-local-variable 'hippie-expand-try-functions-list) (cons 'python-try-complete hippie-expand-try-functions-list))) -- cgit v1.2.3 From 0fea1d10293b4c6d35c1e55b68cd26e91445213c Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Wed, 19 Apr 2006 06:37:31 +0000 Subject: (python-mode): Fix typo. --- lisp/ChangeLog | 4 ++++ lisp/progmodes/python.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'lisp/progmodes/python.el') diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b445532262c..22690ba2694 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2006-04-18 Dan Nicolaescu + + * progmodes/python.el (python-mode): Fix typo. + 2006-04-18 J.D. Smith * comint.el (comint-previous-input): Don't clobber input line diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 8ae94df5ea3..5e645535a23 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1744,7 +1744,7 @@ lines count as headers. #'python-eldoc-function) (add-hook 'eldoc-mode-hook '(lambda () (run-python nil t)) nil t) ; need it running - (unless (assoc 'pyhon-mode hs-special-modes-alist) + (unless (assoc 'python-mode hs-special-modes-alist) (setq hs-special-modes-alist (cons (list -- cgit v1.2.3