;;; 403-python-mode.el --- major mode for python code ;;; Commentary: ;;; Code: (use-package python-mode :ensure t :config (add-hook 'python-mode-hook (lambda () (setq indent-tabs-mode nil) ; use only spaces and no tabs ;;(setq py-indent-offset 4) ; defaults to 4 ;;(setq indent-tabs-mode t) ; use tabs to indent ;;(setq tabs-width 4) ; (add-to-list 'write-file-functions 'whitespace-cleanup))) (use-package python-black ;; Be complient with PIP 8 -- Style Guide ;; https://www.python.org/dev/peps/pep-0008/#indentation :demand t :custom (python-black-on-save-mode-enable-dwim)) (use-package 'py-autopep8 :custom ;;(require 'py-autopep8) (py-autopep8-enable-on-save)) ) ;;; 403-python-mode.el ends here