confi-emacs-actual/snippets/js-mode/addEventListener

8 lines
190 B
Plaintext
Raw Permalink Normal View History

2022-03-30 01:21:13 +02:00
# -*- mode: snippet -*-
# name: addEventListener
# key: ael
# uuid: ael
# --
`(unless (eq (char-before) ?.) ".")`addEventListener('${1:DOMContentLoaded}', () => {
`%`$0
})`(if (eolp) ";")`