summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorIvan Andrus <darthandrus@gmail.com>2013-06-29 10:37:11 -0600
committerIvan Andrus <darthandrus@gmail.com>2013-06-29 21:39:46 -0600
commit367e0740b682fad334cc36fda4f1e66a1519a888 (patch)
tree9271040b51bc4797f4de79cd65fbe0316fb10e0a /Tools
parentb26cd2b9d244cf2ddb45c2d1d6087020249e9dd5 (diff)
downloadcython-367e0740b682fad334cc36fda4f1e66a1519a888.tar.gz
Added autoload cookies
Diffstat (limited to 'Tools')
-rw-r--r--Tools/cython-mode.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/cython-mode.el b/Tools/cython-mode.el
index 92e640901..e0aa05613 100644
--- a/Tools/cython-mode.el
+++ b/Tools/cython-mode.el
@@ -8,11 +8,14 @@
;;; Code:
;; Load python-mode if available, otherwise use builtin emacs python package
-(when (not(require 'python-mode nil t))
+(when (not (require 'python-mode nil t))
(require 'python))
+;;;###autoload
(add-to-list 'auto-mode-alist '("\\.pyx\\'" . cython-mode))
+;;;###autoload
(add-to-list 'auto-mode-alist '("\\.pxd\\'" . cython-mode))
+;;;###autoload
(add-to-list 'auto-mode-alist '("\\.pxi\\'" . cython-mode))
@@ -60,6 +63,7 @@
1 font-lock-function-name-face))
"Additional font lock keywords for Cython mode.")
+;;;###autoload
(define-derived-mode cython-mode python-mode "Cython"
"Major mode for Cython development, derived from Python mode.