Add cython-specific flag and packages

This commit is contained in:
Gerry Agbobada 2019-10-15 09:09:24 +02:00
parent c8b3e7f5ea
commit cfc5a0801c
2 changed files with 21 additions and 0 deletions

View file

@ -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)