* lisp/progmodes/python.el: Move hideshow setup to the end.
This commit is contained in:
parent
b1bac16ead
commit
257440aa1c
2 changed files with 15 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-04-24 Leo Liu <sdl.web@gmail.com>
|
||||
|
||||
* progmodes/python.el: Move hideshow setup to the end.
|
||||
|
||||
2012-04-24 Martin Rudalics <rudalics@gmx.at>
|
||||
|
||||
* window.el (handle-select-window): Clear echo area since this is
|
||||
|
|
|
@ -2468,15 +2468,6 @@ with skeleton expansions for compound statement templates.
|
|||
nil t)
|
||||
(add-hook 'completion-at-point-functions
|
||||
'python-completion-at-point nil 'local)
|
||||
;; Fixme: should be in hideshow. This seems to be of limited use
|
||||
;; since it isn't (can't be) indentation-based. Also hide-level
|
||||
;; doesn't seem to work properly.
|
||||
(add-to-list 'hs-special-modes-alist
|
||||
`(python-mode "^\\s-*\\(?:def\\|class\\)\\>" nil "#"
|
||||
,(lambda (_arg)
|
||||
(python-end-of-defun)
|
||||
(skip-chars-backward " \t\n"))
|
||||
nil))
|
||||
(set (make-local-variable 'skeleton-further-elements)
|
||||
'((< '(backward-delete-char-untabify (min python-indent
|
||||
(current-column))))
|
||||
|
@ -2717,6 +2708,17 @@ comint believe the user typed this string so that
|
|||
;; continue standard unloading
|
||||
nil)
|
||||
|
||||
;;;; Finish up
|
||||
;; Fixme: should be in hideshow. This seems to be of limited use
|
||||
;; since it isn't (can't be) indentation-based. Also hide-level
|
||||
;; doesn't seem to work properly.
|
||||
(add-to-list 'hs-special-modes-alist
|
||||
`(python-mode "^\\s-*\\(?:def\\|class\\)\\>" nil "#"
|
||||
,(lambda (_arg)
|
||||
(python-end-of-defun)
|
||||
(skip-chars-backward " \t\n"))
|
||||
nil))
|
||||
|
||||
(provide 'python)
|
||||
(provide 'python-21)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue