From c2a7ade8317d84b14cb5d3d910c79587d85cc8fa Mon Sep 17 00:00:00 2001 From: swaggboi Date: Tue, 25 Jun 2024 19:52:51 -0400 Subject: [PATCH] Lil tweak for stupid JS --- my_home/.emacs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/my_home/.emacs b/my_home/.emacs index f19927f..ac55463 100644 --- a/my_home/.emacs +++ b/my_home/.emacs @@ -10,7 +10,7 @@ ;; If there is more than one, they won't work right. '(custom-enabled-themes '(tango-dark)) '(package-selected-packages - '(flycheck-raku company yasnippet project eglot dockerfile-mode php-mode web-mode kotlin-mode markdown-mode elpher yaml-mode raku-mode emojify))) + '(js2-mode flycheck-raku company yasnippet project eglot dockerfile-mode php-mode web-mode kotlin-mode markdown-mode elpher yaml-mode raku-mode emojify))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -107,3 +107,6 @@ (setq tab-width 4) (local-set-key (kbd "TAB") 'tab-to-tab-stop) (electric-indent-local-mode -1))) + +;; JS cope +(setq js-switch-indent-offset 4)