Permalink
Browse files

cython-mode now works with python-mode and the builtin python package

  • Loading branch information...
1 parent 63bcd56 commit 8012e5a4c1af11d5885c2cc14bd4da682b1fa654 @RafeKettler RafeKettler committed Mar 25, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 Tools/cython-mode.el
View
@@ -1,6 +1,8 @@
;; Cython mode
-(require 'python-mode)
+;; Load python-mode if available, otherwise use builtin emacs python package
+(when (not(require 'python-mode nil t))
+ (require 'python))
(add-to-list 'auto-mode-alist '("\\.pyx\\'" . cython-mode))
(add-to-list 'auto-mode-alist '("\\.pxd\\'" . cython-mode))

0 comments on commit 8012e5a

Please sign in to comment.