summaryrefslogtreecommitdiffstats
path: root/lisp/init-python-mode.el
blob: a1891c8f0cd38e2e03c03c82ada3b364c26397c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
(require 'python)

(add-hook 'python-mode-hook
          (lambda ()
            ;; disable eletric-indent
            (set (make-local-variable 'electric-indent-mode) nil)
            ;; highlight lines longer than 79 characters (pep8)
            (set (make-local-variable 'whitespace-line-column) 79)
            ;; use flat index in imenu
            (set (make-local-variable 'imenu-create-index-function)
                 'python-imenu-create-flat-index)))

(provide 'init-python-mode)