blob: 5b1e6c584011acd38c8a831e28ac33acf8d07b6f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
(use-package python
:ensure nil ;; package is bundled with emacs
:config
;; use flake8 as flymake backend
(setq python-flymake-command '("flake8" "-"))
;; set buffer local variables
(add-hook 'python-mode-hook
(lambda ()
;; disable electric indent
(setq-local electric-indent-mode nil)
;; highlight lines longer than 88 characters
(setq-local fill-column 88)
;; use flat index in imenu
(setq-local imenu-create-index-function
'python-imenu-create-flat-index))))
(provide 'init-python)
|