Mercurial > emacs
comparison lisp/progmodes/python.el @ 99145:9f4cc3f73286
(python-mode): Don't impose ourselves on hippie.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 26 Oct 2008 05:10:54 +0000 |
parents | 5f56382dc026 |
children | a9dc0e7c3f2b |
comparison
equal
deleted
inserted
replaced
99144:b7eb74a4d86b | 99145:9f4cc3f73286 |
---|---|
2471 nil)) | 2471 nil)) |
2472 (set (make-local-variable 'skeleton-further-elements) | 2472 (set (make-local-variable 'skeleton-further-elements) |
2473 '((< '(backward-delete-char-untabify (min python-indent | 2473 '((< '(backward-delete-char-untabify (min python-indent |
2474 (current-column)))) | 2474 (current-column)))) |
2475 (^ '(- (1+ (current-indentation)))))) | 2475 (^ '(- (1+ (current-indentation)))))) |
2476 (if (featurep 'hippie-exp) | 2476 ;; Let's not mess with hippie-expand. Symbol-completion should rather be |
2477 (set (make-local-variable 'hippie-expand-try-functions-list) | 2477 ;; bound to another key, since it has different performance requirements. |
2478 (cons 'symbol-completion-try-complete | 2478 ;; (if (featurep 'hippie-exp) |
2479 hippie-expand-try-functions-list))) | 2479 ;; (set (make-local-variable 'hippie-expand-try-functions-list) |
2480 ;; (cons 'symbol-completion-try-complete | |
2481 ;; hippie-expand-try-functions-list))) | |
2480 ;; Python defines TABs as being 8-char wide. | 2482 ;; Python defines TABs as being 8-char wide. |
2481 (set (make-local-variable 'tab-width) 8) | 2483 (set (make-local-variable 'tab-width) 8) |
2482 (unless font-lock-mode (font-lock-mode 1)) | 2484 (unless font-lock-mode (font-lock-mode 1)) |
2483 (when python-guess-indent (python-guess-indent)) | 2485 (when python-guess-indent (python-guess-indent)) |
2484 ;; Let's make it harder for the user to shoot himself in the foot. | 2486 ;; Let's make it harder for the user to shoot himself in the foot. |