Skip to content

Commit

Permalink
Initial setup for flycheck
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Dec 1, 2024
1 parent 9aa8b56 commit 59aaac4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ advice for `require-package', to which ARGS are passed."
embark-consult ; Embark integration with `consult'
envrc ; Environment variable manager for shell
erc-hl-nicks ; Nick highlighting in `erc' (IRC client)
flycheck ; Syntax check and diagnostics for my code
flyspell-correct ; Correct spelling with popup menus
git-modes ; Modes for Git-related files
htmlize ; Convert buffer text to HTML
Expand Down Expand Up @@ -2795,6 +2796,8 @@ buffers to include `company-capf' (with optional yasnippet) and
;; At this moment `envrc' should successfully configure environment.
(setq-local python-shell-interpreter (executable-find "python"))

(setq-local flycheck-python-pycompile-executable python-shell-interpreter)

;; Setup active backends for `python-mode'.
(company-backend-for-hook 'lsp-completion-mode-hook
'((company-capf :with company-yasnippet)
Expand Down

0 comments on commit 59aaac4

Please sign in to comment.