From 5145e7e8229c0e55710ed3870d85d52893328708 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 12 Sep 2018 22:58:20 -0400 Subject: [PATCH] lang/python: tab-width = python-indent-offset #882 This fixes evil-shift-width too (which is set to tab-width by evil-collection-python). --- modules/lang/python/config.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index 8fc520268..40bce909a 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -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))