[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/python.el
From: |
Dan Nicolaescu |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/python.el |
Date: |
Tue, 18 Apr 2006 22:34:57 +0000 |
Index: emacs/lisp/progmodes/python.el
diff -u emacs/lisp/progmodes/python.el:1.36 emacs/lisp/progmodes/python.el:1.37
--- emacs/lisp/progmodes/python.el:1.36 Fri Feb 10 09:00:30 2006
+++ emacs/lisp/progmodes/python.el Tue Apr 18 22:34:54 2006
@@ -1744,6 +1744,14 @@
#'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)))
- [Emacs-diffs] Changes to emacs/lisp/progmodes/python.el,
Dan Nicolaescu <=