* python
** <s
#+begin_src emacs-lisp
(require 'use-package)
(message "hello from python mode")
#+end_src


** tree-sitter
#+begin_src emacs-lisp
(add-hook 'python-mode-hook #'tree-sitter-mode +1)
(add-hook 'python-mode-hook #'tree-sitter-hl-mode +1)
#+end_src

** LINT
#+begin_src emacs-lisp
(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)
  )
#+end_src

#+begin_src emacs-lisp
(use-package python
  :hook (python-mode . (lambda ()
                         (flycheck-mode)
                         )))
#+end_src

** elpy
#+begin_src emacs-lisp
(use-package elpy
  :ensure t
  :init
  (elpy-enable))
(add-hook 'elpy-mode-hook (lambda () (highlight-indentation-mode -1)))
#+end_src
