diff options
Diffstat (limited to '')
-rw-r--r-- | config/init-python.el | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/config/init-python.el b/config/init-python.el new file mode 100644 index 0000000..0927dd2 --- /dev/null +++ b/config/init-python.el @@ -0,0 +1,28 @@ +;;; init-python.el --- Configure python -*- lexical-binding: t -*- +;; Author: Franck Cuny <franck@fcuny.net> + +;;; Commentary: + +;; All python related things + +;;; Code: + +(use-package python-mode + :hook ((python-mode . tree-sitter-hl-mode) + (python-mode . eglot-ensure)) + :interpreter "python" + :bind (:map python-mode-map + ("C-c c") + ("C-c C-z" . python-shell))) + +(use-package blacken + :ensure t + :hook (python-mode . blacken-mode)) + +(use-package py-isort + :ensure t + :commands (py-isort-buffer py-isort-region)) + +(provide 'init-python) + +;;; init-python.el ends here |