mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
web: centralize web-beautiful indent config
This commit is contained in:
@ -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)))
|
||||||
|
Reference in New Issue
Block a user