mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-14 17:42:03 +00:00
more changes to the .yas-setup files and fix issue 129
This commit is contained in:
@@ -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   NonBreakingSpace.yasnippet
|
||||
;; ~ =yyas> (yas/unknown)
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user