Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 717 Bytes
;;; setup.el --- setup yasnippets for use with rails
(require 'yasnippet)
(concat (file-name-directory (or load-file-name buffer-file-name))
;;; If you are using MuMaMo or nxml, you will need to tweak the mumamo
;;; keymap to let tab work for yasnippets
(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)
(mumamo-add-multi-keymap 'mumamo-multi-major-mode mumamo-map)))
;;; setup.el ends here
Something went wrong with that request. Please try again.