mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
(python-mode): Don't impose ourselves on hippie.
This commit is contained in:
parent
f37a389e68
commit
f75501733f
2 changed files with 8 additions and 4 deletions
|
|
@ -1,5 +1,7 @@
|
|||
2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* progmodes/python.el (python-mode): Don't impose ourselves on hippie.
|
||||
|
||||
* faces.el (face-font-family-alternatives): Add "CMU Typewriter Text"
|
||||
to the courier family.
|
||||
* textmodes/tex-mode.el (tex-verbatim): Don't use "monospace" which is
|
||||
|
|
|
|||
|
|
@ -2473,10 +2473,12 @@ with skeleton expansions for compound statement templates.
|
|||
'((< '(backward-delete-char-untabify (min python-indent
|
||||
(current-column))))
|
||||
(^ '(- (1+ (current-indentation))))))
|
||||
(if (featurep 'hippie-exp)
|
||||
(set (make-local-variable 'hippie-expand-try-functions-list)
|
||||
(cons 'symbol-completion-try-complete
|
||||
hippie-expand-try-functions-list)))
|
||||
;; Let's not mess with hippie-expand. Symbol-completion should rather be
|
||||
;; bound to another key, since it has different performance requirements.
|
||||
;; (if (featurep 'hippie-exp)
|
||||
;; (set (make-local-variable 'hippie-expand-try-functions-list)
|
||||
;; (cons 'symbol-completion-try-complete
|
||||
;; hippie-expand-try-functions-list)))
|
||||
;; Python defines TABs as being 8-char wide.
|
||||
(set (make-local-variable 'tab-width) 8)
|
||||
(unless font-lock-mode (font-lock-mode 1))
|
||||
|
|
|
|||
Loading…
Reference in a new issue