summary refs log tree commit diff
path: root/config/init-python.el
blob: c9656021e9b3d4527c2458316260b46e6aff5443 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;;; 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)))

(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