summaryrefslogtreecommitdiffstats
path: root/lisp/init-python-mode.el
blob: 88217a11a3c4626d9af09640602e610cb0e2091d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
(use-package python
  :config
  (add-hook 'python-mode-hook
          (lambda ()
            ;; disable electric indent
            (setq-local electric-indent-mode nil)
            ;; highlight lines longer than 79 characters (pep8)
            (setq-local fill-column 79)
            ;; use flat index in imenu
            (setq-local imenu-create-index-function
                        'python-imenu-create-flat-index))))

(provide 'init-python-mode)