web: centralize web-beautiful indent config
This commit is contained in:
parent
997bce9a52
commit
03514fc09d
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,6 @@
|
||||||
:n ":" 'helm-css-scss-multi))
|
:n ":" 'helm-css-scss-multi))
|
||||||
|
|
||||||
(after! web-beautify
|
(after! web-beautify
|
||||||
(add-hook! scss-mode (setenv "jsbeautify_indent_size" "2"))
|
|
||||||
(map! :map scss-mode-map :m "gQ" 'web-beautify-css))
|
(map! :map scss-mode-map :m "gQ" 'web-beautify-css))
|
||||||
|
|
||||||
(after! emr
|
(after! emr
|
||||||
|
@ -85,7 +84,8 @@
|
||||||
(use-package web-beautify
|
(use-package web-beautify
|
||||||
:commands (web-beautify-js web-beautify-css web-beautify-html)
|
:commands (web-beautify-js web-beautify-css web-beautify-html)
|
||||||
:init
|
:init
|
||||||
(add-hook! (web-mode css-mode js2-mode) (setenv "jsbeautify_indent_size" (int-to-string tab-width)))
|
(add-hook! (web-mode css-mode scss-mode sass-mode less-css-mode js2-mode)
|
||||||
|
(setenv "jsbeautify_indent_size" (int-to-string tab-width)))
|
||||||
(map! (:after web-mode :map web-mode-map :m "gQ" 'web-beautify-html)
|
(map! (:after web-mode :map web-mode-map :m "gQ" 'web-beautify-html)
|
||||||
(:after css-mode :map css-mode-map :m "gQ" 'web-beautify-css)
|
(:after css-mode :map css-mode-map :m "gQ" 'web-beautify-css)
|
||||||
(:after js2-mode :map js2-mode-map :m "gQ" 'web-beautify-js)))
|
(:after js2-mode :map js2-mode-map :m "gQ" 'web-beautify-js)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue