27 lines
678 B
EmacsLisp
Raw Normal View History

2024-09-04 00:54:15 +06:00
(require 'use-package)
(add-hook 'python-mode-hook #'tree-sitter-mode +1)
(add-hook 'python-mode-hook #'tree-sitter-hl-mode +1)
(use-package flycheck
:ensure t
:init
(global-flycheck-mode)
:config
(setq-default flycheck-disabled-checkers '(lsp))
(setq flycheck-python-flake8-executable "flake8")
(setq flycheck-python-pylint-executable "pylint")
(flycheck-add-next-checker 'python-flake8 'python-pylint)
)
(use-package python
:hook (python-mode . (lambda ()
(flycheck-mode)
)))
(use-package elpy
:ensure t
:init
(elpy-enable))
(add-hook 'elpy-mode-hook (lambda () (highlight-indentation-mode -1)))