javascript layer: Move web-beautify on SPC m =
to be consistent
with the other layers
This commit is contained in:
parent
2ebf56afc1
commit
b169cb9d43
|
@ -105,6 +105,12 @@ Bindings should match the plain emacs assignments.
|
|||
<kbd>SPC m r w i</kbd> | wraps the entire buffer in an immediately invoked function expression
|
||||
<kbd>SPC m r w l</kbd> | wraps the region in a for-loop
|
||||
|
||||
### Formatting (web-beautify)
|
||||
|
||||
Key Binding | Description
|
||||
-----------------------|------------------------------------------------------------
|
||||
<kbd>SPC m =</kbd> | beautify code in js2-mode, json-mode, web-mode, and css-mode
|
||||
|
||||
#### Documentation (js-doc)
|
||||
|
||||
Key Binding | Description
|
||||
|
@ -125,12 +131,6 @@ Bindings should match the plain emacs assignments.
|
|||
<kbd>SPC m h t</kbd> | find the type of the thing under the cursor
|
||||
<kbd>SPC m r r V</kbd> | rename variable under the cursor using tern
|
||||
|
||||
### Formatting (web-beautify)
|
||||
|
||||
Key Binding | Description
|
||||
-----------------------|------------------------------------------------------------
|
||||
<kbd>SPC m b</kbd> | beautify code in js2-mode, json-mode, web-mode, and css-mode
|
||||
|
||||
[js2-mode]: https://github.com/mooz/js2-mode
|
||||
[js2-refactor]: https://github.com/magnars/js2-refactor.el
|
||||
[tern]: http://ternjs.net/
|
||||
|
|
|
@ -175,14 +175,11 @@
|
|||
(use-package web-beautify
|
||||
:defer t
|
||||
:init
|
||||
(eval-after-load 'js2-mode
|
||||
'(evil-leader/set-key-for-mode 'js2-mode "mb" 'web-beautify-js))
|
||||
(eval-after-load 'json-mode
|
||||
'(evil-leader/set-key-for-mode 'json-mode "mb" 'web-beautify-js))
|
||||
(eval-after-load 'web-mode
|
||||
'(evil-leader/set-key-for-mode 'web-mode "mb" 'web-beautify-html))
|
||||
(eval-after-load 'css-mode
|
||||
'(evil-leader/set-key-for-mode 'css-mode "mb" 'web-beautify-css))))
|
||||
(progn
|
||||
(evil-leader/set-key-for-mode 'js2-mode "m=" 'web-beautify-js)
|
||||
(evil-leader/set-key-for-mode 'json-mode "m=" 'web-beautify-js)
|
||||
(evil-leader/set-key-for-mode 'web-mode "m=" 'web-beautify-html)
|
||||
(evil-leader/set-key-for-mode 'css-mode "m=" 'web-beautify-css))))
|
||||
|
||||
|
||||
(when (configuration-layer/layer-usedp 'auto-completion)
|
||||
|
|
Loading…
Reference in a new issue