web-mode-plus
defines additional commands for web-mode
that weren’t merged
to it.
It provides following features:
- following links in HTML files (
C-c C-o
in default bindings) - creating new tags of the same type like the
M-RET
command inorg-mode
(M-RET
in default bindings) - a shortcut to insert a
<br/>
tag at point (or on every line in region) (C-c C-RET
in default bindings)
This set of extensions depends on ~web-mode~. Make sure it’s installed and set up first.
- Put
web-mode-plus.el
somewhere in yourload-path
. require
it in your init file(require 'web-mode-plus)
- Add an
eval-after-load
form that sets it up.(eval-after-load 'web-mode (lambda () (web-mode-plus-bind-keys) ; add default bindings (web-mode-plus-set-html-snippets))) ; add a set of better HTML snippets
Autoload comments are added for web-mode-plus-bind-keys
and
web-mode-plus-set-html-snippets
, so these functions can be used easily with
lazy loading setups.