New answers tagged

1

(use-package yasnippet-snippets :defer 2 :hook (prog-mode . yas-minor-mode) :config (yas-define-snippets 'js-mode '(("clg" "console.log('$1: %s (%s)',$2);" "pX console.log()") ("cle" "console.error('$1: %s (%s)',$2);" "pX console.error()") ...


1

The answer mentioned by @dalanicolai helped a lot: I just had to edit ~/.emacs.d/snippets/html-mode/.yas-parents to contain css-mode js-mode.


Top 50 recent answers are included