fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.63k stars 262 forks source link

Auto Expanding not Working in JS files #1237

Closed WillAyd closed 2 years ago

WillAyd commented 2 years ago

I have this config entry for web-mode

(use-package web-mode
  :mode "\\.js\\'"
  :config
  (setq web-mode-enable-auto-expanding t))

If I open a buffer and enable web mode, I can type d/ and get the auto expansion to div elements. However, the same does not work in a .js file when web-mode is activated. Is this by design?

fxbois commented 2 years ago

you're right, it only works in plain html