dotfiles/.emacs.d/snippets/dix-mode/s

9 lines
388 B
Plaintext

# -*- mode: snippet; require-final-newline: nil -*-
# name: <s> element
# key: <s
# binding: direct-keybinding
# condition: (progn (backward-char 2) (member (dix-enclosing-elt 'noerror) '("l" "r" "i" "g")))
#Note: requires (eval-after-load 'yasnippet '(add-to-list 'yas-key-syntaxes 'dix-yas-skip-backwards-to-key))
#so that you can expand it after regular letter chars
# --
<s n="$1"/>$0