Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 8012e5a4c1af11d5885c2cc14bd4da682b1fa654 1 parent 63bcd56
@RafeKettler RafeKettler authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Tools/cython-mode.el
View
4 Tools/cython-mode.el
@@ -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))
Please sign in to comment.
Something went wrong with that request. Please try again.