;; enable eldoc (intellisensish help) (add-hook 'python-mode-hook '(lambda () (eldoc-mode 1)) t) ;; enabled automatic pylinting (add-hook 'python-mode-hook '(lambda () (flymake-mode 1)) t) ;; enabled spell checking of python comments and strings (add-hook 'python-mode-hook '(lambda () (flyspell-prog-mode)) t) ;; enter -> newline and indent (add-hook 'python-mode-hook '(lambda () (define-key python-mode-map "\C-m" 'newline-and-indent))) ;; don't indent using tabs (add-hook 'python-mode-hook '(lambda () "Turn off Indent Tabs mode." (set (make-local-variable 'indent-tabs-mode) nil)))