-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit-python.el
More file actions
43 lines (34 loc) · 908 Bytes
/
Copy pathinit-python.el
File metadata and controls
43 lines (34 loc) · 908 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
;;; init-python.el --- python
;;; Commentary:
;;
;;; Code:
;; Built-in package; mode may be remapped to python-ts-mode via
;; major-mode-remap-alist in init-prog.el.
(use-package python
:ensure nil
:defer t
:config
(when (fboundp 'py-snippets-initialize)
(py-snippets-initialize)))
(use-package python-cell
:after python
:ensure t
:defer t
:hook
(python-mode . python-cell-mode)
(python-ts-mode . python-cell-mode))
(use-package uv-mode
:ensure t
:defer t
:hook
(python-mode . uv-mode-auto-activate-hook)
(python-ts-mode . uv-mode-auto-activate-hook))
(use-package cython-mode
:ensure t
:defer t
:mode ("\\.pyx\\'" "\\.pxd\\'" "\\.pxi\\'"))
;; elpy omitted: conflicts with lsp-mode/dap (see init-lsp.el /
;; init-dap.el). Prefer lsp-mode + dap-python for IDE features.
(message "[init] init-python loaded")
(provide 'init-python)
;;; init-python.el ends here