lang/python: tab-width = python-indent-offset #882

This fixes evil-shift-width too (which is set to tab-width by
evil-collection-python).
This commit is contained in:
Henrik Lissner 2018-09-12 22:58:20 -04:00
parent 03ce3db322
commit 5145e7e822
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -57,6 +57,8 @@
python-shell-completion-string-code
"';'.join(get_ipython().Completer.all_completions('''%s'''))\n"))
(setq-hook! 'python-mode-hook tab-width python-indent-offset)
;; Add python/pipenv version string to the major mode in the modeline
(defun +python|adjust-mode-line ()
(setq mode-name +python-mode-line-indicator))