From 26a0f3c08b7558c50388aea3e31286cf5b226630 Mon Sep 17 00:00:00 2001 From: William Stein Date: Sat, 28 Jul 2007 13:53:00 -0700 Subject: [PATCH] Move some emacs support tools. --- Tools/cython-mode.el | 1 + Tools/{pyrex.st => cython.st} | 0 Tools/pyrex-mode.el | 1 - 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 Tools/cython-mode.el rename Tools/{pyrex.st => cython.st} (100%) delete mode 100644 Tools/pyrex-mode.el 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 -- 2.26.2