The doc of
When a major mode is initialized, MODE is actually turned on just
after running the major mode’s hook. However, MODE is not turned
on if the hook has explicitly disabled it.
That means you should explicitly disable
(defun my-web-mode-hook-fun ()
"Disable `column-enforce-mode' in `web-mode'."
(add-hook 'web-mode-hook #'my-web-mode-hook-fun)
This is the general approach for globalized minor modes. It is not tested for your special case of
column-enforce-mode since I don't use it. Please test the code and report whether it works.