Function: web-mode-disable

web-mode-disable is an interactive and natively compiled function defined in web-mode.el.

Signature

(web-mode-disable FEATURE)

Documentation

Disable 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-disable (feature)
  "Disable 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 feature (cdr (assoc feature web-mode-features)))
    (cond
      ((eq feature 'web-mode-enable-current-column-highlight)
       (web-mode-column-hide))
      ((eq feature 'web-mode-enable-current-element-highlight)
       (when web-mode-enable-current-element-highlight
         (web-mode-toggle-current-element-highlight))
       )
      ((eq feature 'web-mode-enable-whitespace-fontification)
       (web-mode-whitespaces-off))
      (t
       (set feature nil)
       (web-mode-buffer-fontify))
      )
    ) ;when
  )