From 527128f75679041fc0ef54206f53756d0daf602c Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 25 Mar 2020 01:43:11 -0400 Subject: [PATCH] Disable script and style block padding in web-mode --- .emacs.d/init.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index e331ded..9cf73a1 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -756,9 +756,11 @@ :mode "\\.vue?\\'" :config (add-to-list 'web-mode-indentation-params '("lineup-calls" . nil)) - (setq web-mode-markup-indent-offset 2 - web-mode-css-indent-offset 2 - web-mode-code-indent-offset 2)) + (setq-default web-mode-markup-indent-offset 2 + web-mode-css-indent-offset 2 + web-mode-code-indent-offset 2 + web-mode-script-padding nil + web-mode-style-padding nil)) (use-package vue-mode :config