I want web-mode
to use comment-dwim
instead of web-mode-comment-or-uncomment
(bound to M-;
).
I tried:
;; Web Mode (http://web-mode.org/)
(with-eval-after-load 'web-mode
(setq
web-mode-markup-indent-offset 2
web-mode-css-indent-offset 2
web-mode-code-indent-offset 2)
;; (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
(global-set-key (kbd "M-;") 'comment-dwim))
But the change doesn't apply, I've also tried with local-set-key
.