lang/python: default to python3
This commit is contained in:
parent
13f7f70242
commit
13ac086606
1 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,12 @@ called.")
|
||||||
(when (featurep! +lsp)
|
(when (featurep! +lsp)
|
||||||
(add-hook 'python-mode-local-vars-hook #'lsp!))
|
(add-hook 'python-mode-local-vars-hook #'lsp!))
|
||||||
|
|
||||||
|
;; Default to Python 3. Prefer the versioned Python binaries since some
|
||||||
|
;; systems stupidly make the unversioned one point at Python 2.
|
||||||
|
(when (and (executable-find "python3")
|
||||||
|
(string= python-shell-interpreter "python"))
|
||||||
|
(setq python-shell-interpreter "python3"))
|
||||||
|
|
||||||
(add-hook 'python-mode-hook
|
(add-hook 'python-mode-hook
|
||||||
(defun +python-use-correct-flycheck-executables-h ()
|
(defun +python-use-correct-flycheck-executables-h ()
|
||||||
"Use the correct Python executables for Flycheck."
|
"Use the correct Python executables for Flycheck."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue