Permalink
Browse files

added a MuMaMo existence check.

  • Loading branch information...
1 parent 5cc4c6d commit 9b12c797a11a975960c435f4723f52cb9740cb70 @gary gary committed Sep 7, 2008
Showing with 9 additions and 8 deletions.
  1. +9 −8 setup.el
View
@@ -7,12 +7,13 @@
;;; If you are using MuMaMo or nxml, you will need to tweak the mumamo
;;; keymap to let tab work for yasnippets
-(setq mumamo-map
- (let ((map (make-sparse-keymap)))
- (define-key map [(control meta prior)] 'mumamo-backward-chunk)
- (define-key map [(control meta next)] 'mumamo-forward-chunk)
- (define-key map [tab] 'yas/expand)
- map))
-(mumamo-add-multi-keymap 'mumamo-multi-major-mode mumamo-map)
+(if (boundp 'mumamo:version)
+ ((setq mumamo-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map [(control meta prior)] 'mumamo-backward-chunk)
+ (define-key map [(control meta next)] 'mumamo-forward-chunk)
+ (define-key map [tab] 'yas/expand)
+ map))
+ (mumamo-add-multi-keymap 'mumamo-multi-major-mode mumamo-map)))
-;;; setup.el ends here
+;;; setup.el ends here

0 comments on commit 9b12c79

Please sign in to comment.