confi-emacs-actual/snippets/js-mode/addEventListener
2022-03-29 19:21:13 -04:00

8 lines
190 B
Plaintext

# -*- mode: snippet -*-
# name: addEventListener
# key: ael
# uuid: ael
# --
`(unless (eq (char-before) ?.) ".")`addEventListener('${1:DOMContentLoaded}', () => {
`%`$0
})`(if (eolp) ";")`