comparison lisp/progmodes/python.el @ 112223:02196c405b19

* progmodes/python.el (python-mode): Don't impose font-lock.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 02 Jan 2011 22:49:13 -0500
parents 376148b31b5e
children 417b1e4d63cd
comparison
equal deleted inserted replaced
112222:5f7efaa8604a 112223:02196c405b19
2550 '((< '(backward-delete-char-untabify (min python-indent 2550 '((< '(backward-delete-char-untabify (min python-indent
2551 (current-column)))) 2551 (current-column))))
2552 (^ '(- (1+ (current-indentation)))))) 2552 (^ '(- (1+ (current-indentation))))))
2553 ;; Python defines TABs as being 8-char wide. 2553 ;; Python defines TABs as being 8-char wide.
2554 (set (make-local-variable 'tab-width) 8) 2554 (set (make-local-variable 'tab-width) 8)
2555 (unless font-lock-mode (font-lock-mode 1))
2556 (when python-guess-indent (python-guess-indent)) 2555 (when python-guess-indent (python-guess-indent))
2557 ;; Let's make it harder for the user to shoot himself in the foot. 2556 ;; Let's make it harder for the user to shoot himself in the foot.
2558 (unless (= tab-width python-indent) 2557 (unless (= tab-width python-indent)
2559 (setq indent-tabs-mode nil)) 2558 (setq indent-tabs-mode nil))
2560 (set (make-local-variable 'python-command) python-python-command) 2559 (set (make-local-variable 'python-command) python-python-command)