Add cython-specific flag and packages
This commit is contained in:
parent
c8b3e7f5ea
commit
cfc5a0801c
2 changed files with 21 additions and 0 deletions
|
@ -276,3 +276,20 @@ called.")
|
||||||
(defadvice! +python--dont-auto-install-server-a ()
|
(defadvice! +python--dont-auto-install-server-a ()
|
||||||
:override #'lsp-python-ms--command-string
|
:override #'lsp-python-ms--command-string
|
||||||
lsp-python-ms-executable))
|
lsp-python-ms-executable))
|
||||||
|
|
||||||
|
(use-package! cython-mode
|
||||||
|
:when (featurep! +cython)
|
||||||
|
:mode (("\\.pyx\\'" . cython-mode)
|
||||||
|
("\\.pxd\\'" . cython-mode)
|
||||||
|
("\\.pxi\\'" . cython-mode))
|
||||||
|
:config
|
||||||
|
(setq cython-default-compile-format "cython -a %s")
|
||||||
|
(map! :map cython-mode-map
|
||||||
|
:localleader
|
||||||
|
:prefix "c"
|
||||||
|
:desc "Cython compile buffer" "c" #'cython-compile)
|
||||||
|
)
|
||||||
|
|
||||||
|
(use-package! flycheck-cython
|
||||||
|
:when (featurep! :tools flycheck)
|
||||||
|
:after cython-mode)
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
|
|
||||||
;; Major modes
|
;; Major modes
|
||||||
(package! pip-requirements)
|
(package! pip-requirements)
|
||||||
|
(when (featurep! +cython)
|
||||||
|
(package! cython-mode)
|
||||||
|
(when (featurep! :tools flycheck)
|
||||||
|
(package! flycheck-cython)))
|
||||||
|
|
||||||
;; LSP
|
;; LSP
|
||||||
(when (featurep! +lsp)
|
(when (featurep! +lsp)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue