summaryrefslogblamecommitdiff
path: root/config/init-python.el
blob: 0927dd250cbb4189469c460731952cdb833ae17d (plain) (tree)



























                                                                  
;;; 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