(use-package tos
:ensure nil
:quelpa
(tos :repo "pkulev/tos.el"
:fetcher github :upgrade t))
(defun python-indentation-hook ()
"Sets proper values depending on buffer indentation mode."
(if (tos-buffer-tabs?)
(setq indent-tabs-mode t
tab-width 4)
(setq indent-tabs-mode nil
tab-width 4)))
(use-package python-mode
:ensure nil
:hook
(python-mode . python-indentation-hook))