From: Mark Wooding Date: Thu, 27 Jul 2017 10:00:52 +0000 (+0100) Subject: el/dot-emacs.el: Define stub mode for editing Pyrex. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/b5263ae594e75c9c4434a605057701575e72c9c1?ds=sidebyside el/dot-emacs.el: Define stub mode for editing Pyrex. I'm not using the `official' one any more, because it depends on Pymacs and I'm just not going there. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index e290e5a..dc61918 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2640,6 +2640,14 @@ (defun mdw-fontify-pyrex () "property" "raise" "return" "struct" "try" "while" "with" "yield"))) +(define-derived-mode pyrex-mode python-mode "Pyrex" + "Major mode for editing Pyrex source code") +(setq auto-mode-alist + (append '(("\\.pyx$" . pyrex-mode) + ("\\.pxd$" . pyrex-mode) + ("\\.pxi$" . pyrex-mode)) + auto-mode-alist)) + ;;;-------------------------------------------------------------------------- ;;; Lua programming style.