Skip to content

Commit

Permalink
Make python tab-width configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBB authored and syl20bnr committed Oct 19, 2016
1 parent 7bdde17 commit f960108
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions layers/+lang/python/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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\".
Expand Down
2 changes: 1 addition & 1 deletion layers/+lang/python/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f960108

Please sign in to comment.