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 ()
|
||||
:override #'lsp-python-ms--command-string
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue