diff --git a/emacs/.emacs.d/config/init-python.el b/emacs/.emacs.d/config/init-python.el index 4fac2ec..e094ede 100644 --- a/emacs/.emacs.d/config/init-python.el +++ b/emacs/.emacs.d/config/init-python.el @@ -53,4 +53,12 @@ :general (python-mode-map "C-c C-d" #'lsp-describe-thing-at-point)) +;; isort to sort Python imports +(use-package py-isort + :commands (py-isort-buffer py-isort-region) + :config + (setq py-isort-options '("-m=3")) + :general + (python-mode-map "C-c C-i" #'py-isort-buffer)) + (provide 'init-python)