Make python tab-width configurable

This commit is contained in:
Eivind Fonn 2016-10-11 20:01:01 +02:00
parent 72d87deb81
commit 200fb764aa
2 changed files with 4 additions and 1 deletions

View file

@ -27,6 +27,9 @@
(defvar python-fill-column 79
"Fill column value for python buffers")
(defvar python-tab-width 4
"Tab width value for python buffers")
(defvar python-auto-set-local-pyenv-version 'on-visit
"Automatically set pyenv version from \".python-version\".

View file

@ -262,7 +262,7 @@
(defun python-default ()
(setq mode-name "Python"
tab-width 4
tab-width python-tab-width
fill-column python-fill-column)
(when (version< emacs-version "24.5")
;; auto-indent on colon doesn't work well with if statement