blob: 0927dd250cbb4189469c460731952cdb833ae17d (
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
25
26
27
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
|