Function: web-mode-enable
web-mode-enable is an interactive and natively compiled function
defined in web-mode.el.
Signature
(web-mode-enable FEATURE)
Documentation
Enable one feature.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/2qgnz1rp30nzfz6w0apx4kdm14if1bbs-emacs-packages-deps/share/emacs/site-lisp/elpa/web-mode-20260831.219/web-mode.el
(defun web-mode-enable (feature)
"Enable one feature."
(interactive
(list (completing-read
"Feature: "
(let (features)
(dolist (elt web-mode-features)
(setq features (append features (list (car elt)))))
features))))
(when (and (or (not feature) (< (length feature) 1)) web-mode-last-enabled-feature)
(setq feature web-mode-last-enabled-feature))
(when feature
(setq web-mode-last-enabled-feature feature)
(setq feature (cdr (assoc feature web-mode-features)))
(cond
((eq feature 'web-mode-enable-current-column-highlight)
(web-mode-column-show))
((eq feature 'web-mode-enable-current-element-highlight)
(when (not web-mode-enable-current-element-highlight)
(web-mode-toggle-current-element-highlight))
)
((eq feature 'web-mode-enable-whitespace-fontification)
(web-mode-whitespaces-on))
(t
(set feature t)
(web-mode-buffer-fontify))
)
) ;when
)