Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.717 kb
;;; setup.el --- setup yasnippets for use with rails
(require 'yasnippet)
(yas/initialize)
(yas/load-directory
(concat (file-name-directory (or load-file-name buffer-file-name))
"rails-snippets/"))
;;; 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)
map))
(mumamo-add-multi-keymap 'mumamo-multi-major-mode mumamo-map)))
;;; setup.el ends here
Jump to Line
Something went wrong with that request. Please try again.