This commit is contained in:
Gerry Agbobada 2019-10-17 08:51:18 +02:00
parent 02e96926fd
commit 8820a70a69

View file

@ -277,18 +277,17 @@ called.")
:override #'lsp-python-ms--command-string :override #'lsp-python-ms--command-string
lsp-python-ms-executable)) lsp-python-ms-executable))
(use-package! cython-mode (use-package! cython-mode
:when (featurep! +cython) :when (featurep! +cython)
:mode (("\\.pyx\\'" . cython-mode) :mode "\\.p\\(yx\\|x[di]\\)\\'"
("\\.pxd\\'" . cython-mode)
("\\.pxi\\'" . cython-mode))
:config :config
(setq cython-default-compile-format "cython -a %s") (setq cython-default-compile-format "cython -a %s")
(map! :map cython-mode-map (map! :map cython-mode-map
:localleader :localleader
:prefix "c" :prefix "c"
:desc "Cython compile buffer" "c" #'cython-compile) :desc "Cython compile buffer" "c" #'cython-compile))
)
(use-package! flycheck-cython (use-package! flycheck-cython
:when (featurep! :tools flycheck) :when (featurep! :tools flycheck)