Make python tab-width configurable
This commit is contained in:
parent
72d87deb81
commit
200fb764aa
|
@ -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\".
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue