commit fa71ca185b59e5a9da9083dd0da0b6b29bf4a8b4 parent 5f570991586cb49b6a8483b67f6f270ee0df2471 Author: Vincent Demeester <vincent@sbr.pm> Date: Mon, 6 Apr 2020 15:51:49 +0200 setup-web.el: temporary disable Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/setup-web.el | | | 69 | ++++++++++++++++++++++++++++++++++----------------------------------- |
1 file changed, 34 insertions(+), 35 deletions(-)
diff --git a/tools/emacs/config/setup-web.el b/tools/emacs/config/setup-web.el @@ -1,35 +1,34 @@ -(if *sys/full* - (progn - (use-package web-mode - :mode - ("\\.html\\'" . web-mode) - ("\\.phtml\\'" . web-mode) - ("\\.[agj]sp\\'" . web-mode) - ("\\.as[cp]x\\'" . web-mode) - ("\\.erb\\'" . web-mode) - ("\\.mustache\\'" . web-mode) - ("\\.djhtml\\'" . web-mode) - ("\\.jsp\\'" . web-mode) - ("\\.eex\\'" . web-mode) - ("\\.tsx\\'" . web-mode) - :config - (setq web-mode-attr-indent-offset 2) - (setq web-mode-code-indent-offset 2) - (setq web-mode-css-indent-offset 2) - (setq web-mode-indent-style 2) - (setq web-mode-markup-indent-offset 2) - (setq web-mode-sql-indent-offset 2) - (eval-after-load 'smartparens - (lambda () - (setq web-mode-enable-auto-pairing nil) - (sp-with-modes '(web-mode) - (sp-local-pair "%" "%" - :unless '(sp-in-string-p) - :post-handlers '(((lambda (&rest _ignored) - (just-one-space) - (save-excursion (insert " "))) - "SPC" "=" "#"))) - (sp-local-tag "%" "<% " " %>") - (sp-local-tag "=" "<%= " " %>") - (sp-local-tag "#" "<%# " " %>"))))) - )) +(use-package web-mode + ;; :if *sys/full* + :disabled + :mode + ("\\.html\\'" . web-mode) + ("\\.phtml\\'" . web-mode) + ("\\.[agj]sp\\'" . web-mode) + ("\\.as[cp]x\\'" . web-mode) + ("\\.erb\\'" . web-mode) + ("\\.mustache\\'" . web-mode) + ("\\.djhtml\\'" . web-mode) + ("\\.jsp\\'" . web-mode) + ("\\.eex\\'" . web-mode) + ("\\.tsx\\'" . web-mode) + :config + (setq web-mode-attr-indent-offset 2) + (setq web-mode-code-indent-offset 2) + (setq web-mode-css-indent-offset 2) + (setq web-mode-indent-style 2) + (setq web-mode-markup-indent-offset 2) + (setq web-mode-sql-indent-offset 2) + (eval-after-load 'smartparens + (lambda () + (setq web-mode-enable-auto-pairing nil) + (sp-with-modes '(web-mode) + (sp-local-pair "%" "%" + :unless '(sp-in-string-p) + :post-handlers '(((lambda (&rest _ignored) + (just-one-space) + (save-excursion (insert " "))) + "SPC" "=" "#"))) + (sp-local-tag "%" "<% " " %>") + (sp-local-tag "=" "<%= " " %>") + (sp-local-tag "#" "<%# " " %>")))))