[Python-mode] python-mode for cython/pyrex?

Andreas Röhler andreas.roehler at online.de
Fri Apr 8 23:02:10 CEST 2011


Am 08.04.2011 17:21, schrieb Mihai Badoiu:
> is there a python equivalent emacs mode for cython/pyrex?
>
> thanks,
>
> --mihai
>
>
>
>
> _______________________________________________
> Python-mode mailing list
> Python-mode at python.org
> http://mail.python.org/mailman/listinfo/python-mode

Hi,

see for example

http://packages.debian.org/de/sid/pyrex-mode

herewith comes a pyrex-mode.el:


;;;; `Pyrex' mode.

(add-to-list 'auto-mode-alist '("\\.pyx\\'" . pyrex-mode))

(define-derived-mode pyrex-mode python-mode "Pyrex"
   (font-lock-add-keywords
    nil
    `((,(concat "\\<\\(NULL"
	       "\\|c\\(def\\|har\\|typedef\\)"
	       "\\|e\\(num\\|xtern\\)"
	       "\\|float"
	       "\\|in\\(clude\\|t\\)"
	       "\\|object\\|public\\|struct\\|type\\|union\\|void"
	       "\\)\\>")
       1 font-lock-keyword-face t))))


BTW should you need something, please write a blueprint.

Can't promess anything, as still bug-fixing python-mode.
In any case interested to read your proposals.

Regards,

Andreas

--
https://code.launchpad.net/~a-roehler/python-mode/python-mode-components
https://code.launchpad.net/s-x-emacs-werkstatt/







More information about the Python-mode mailing list