With use-package: (use-package web-mode :custom (web-mode-markup-indent-offset 2) (web-mode-css-indent-offset 2) (web-mode-code-indent-offset 2))


You can find out what C-c C-v does by pressing F1 k C-c C-v in a html-mode buffer: C-c C-v runs the command browse-url-of-buffer (found in html-mode-map), which is an interactive autoloaded compiled Lisp function in ‘browse-url.el’. That command can be bound in the appropriate web-mode keymap, aptly named web-mode-map: (with-eval-after-load 'web-...

Only top voted, non community-wiki answers of a minimum length are eligible