comparison lisp/progmodes/python.el @ 90385:72dea2ff0142

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-57 Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 226-238) - Update from CVS - Merge from gnus--rel--5.10 - Update from CVS: lisp/progmodes/python.el (python-mode): Fix typo. * gnus--rel--5.10 (patch 86-90) - Update from CVS - Merge from emacs--devo--0
author Miles Bader <miles@gnu.org>
date Fri, 21 Apr 2006 05:39:14 +0000
parents 4b3d39451150 15278e681be3
children 2ecafc6d5db7
comparison
equal deleted inserted replaced
90384:c156f6a9e7b5 90385:72dea2ff0142
1742 (setq imenu-create-index-function #'python-imenu-create-index) 1742 (setq imenu-create-index-function #'python-imenu-create-index)
1743 (set (make-local-variable 'eldoc-documentation-function) 1743 (set (make-local-variable 'eldoc-documentation-function)
1744 #'python-eldoc-function) 1744 #'python-eldoc-function)
1745 (add-hook 'eldoc-mode-hook 1745 (add-hook 'eldoc-mode-hook
1746 '(lambda () (run-python nil t)) nil t) ; need it running 1746 '(lambda () (run-python nil t)) nil t) ; need it running
1747 (unless (assoc 'python-mode hs-special-modes-alist)
1748 (setq
1749 hs-special-modes-alist
1750 (cons (list
1751 'python-mode "^\\s-*def\\>" nil "#"
1752 (lambda (arg)(python-end-of-defun)(skip-chars-backward " \t\n"))
1753 nil)
1754 hs-special-modes-alist)))
1747 (if (featurep 'hippie-exp) 1755 (if (featurep 'hippie-exp)
1748 (set (make-local-variable 'hippie-expand-try-functions-list) 1756 (set (make-local-variable 'hippie-expand-try-functions-list)
1749 (cons 'python-try-complete hippie-expand-try-functions-list))) 1757 (cons 'python-try-complete hippie-expand-try-functions-list)))
1750 (unless font-lock-mode (font-lock-mode 1)) 1758 (unless font-lock-mode (font-lock-mode 1))
1751 (when python-guess-indent (python-guess-indent)) 1759 (when python-guess-indent (python-guess-indent))