From: William Stein Date: Sat, 28 Jul 2007 20:53:00 +0000 (-0700) Subject: Move some emacs support tools. X-Git-Tag: 0.9.6.14~67 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=26a0f3c08b7558c50388aea3e31286cf5b226630;p=cython.git Move some emacs support tools. --- diff --git a/Tools/cython-mode.el b/Tools/cython-mode.el new file mode 100644 index 00000000..ae1af7f3 --- /dev/null +++ b/Tools/cython-mode.el @@ -0,0 +1 @@ +;;;; `Cython' mode. (add-to-list 'auto-mode-alist '("\\.pyx\\'" . cython-mode)) (define-derived-mode cython-mode python-mode "Cython" (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)))) \ No newline at end of file diff --git a/Tools/pyrex.st b/Tools/cython.st similarity index 100% rename from Tools/pyrex.st rename to Tools/cython.st diff --git a/Tools/pyrex-mode.el b/Tools/pyrex-mode.el deleted file mode 100644 index 1493a9d8..00000000 --- a/Tools/pyrex-mode.el +++ /dev/null @@ -1 +0,0 @@ -;;;; `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)))) \ No newline at end of file