more changes to the .yas-setup files and fix issue 129

This commit is contained in:
capitaomorte
2011-05-07 19:13:40 +00:00
parent 35eaad9d40
commit 7fe4e84f91
4 changed files with 20 additions and 12 deletions

View File

@@ -8,7 +8,7 @@
"Html-mode snippets behave as close to TextMate as possible.")
(defun yas/html-activate ()
(add-to-list 'yas/mode-symbol 'html-mode))
(add-to-list (make-local-variable 'yas/mode-symbol) 'html-mode))
(add-hook 'nxml-mode-hook 'yas/html-activate)
(add-hook 'rhtml-mode-hook 'yas/html-activate)
@@ -80,7 +80,7 @@
(string-match (format "<%s>\\(.*\\)</%s>" wrap wrap)
string)
(match-string 1 string))
(concat "<em>" string "</em>")))
(concat wrap string wrap)))
(defun yas/html-between-tag-pair-p ()
(save-excursion
@@ -649,6 +649,9 @@
;; Substitutions for: binding
;;
;; # as in Commands/Persistent Include.yasnippet
;; =yyas> (yas/unknown)
;;
;; # as in Snippets/XHTML &nbsp NonBreakingSpace.yasnippet
;; ~ =yyas> (yas/unknown)
;;