all repos — nixfiles @ c281cebf16625528fd5cc82898d5e39069c5c4ab

System and user configuration, managed by nix and home-manager

emacs: don't always open HTML files in web-mode
Alan Pearce alan@alanpearce.eu
Fri, 19 Apr 2024 10:42:32 +0200
commit

c281cebf16625528fd5cc82898d5e39069c5c4ab

parent

3dfb1bffda71447914e9570e811949caf2785e73

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -875,8 +875,7 @@ (setq css-indent-offset 2))) (add-to-list 'major-mode-remap-alist '(css-mode . css-ts-mode))
 
 (use-package web-mode
-  :mode (("\\.html?\\'" . web-mode)
-         ("\\.html?.erb\\'" . web-mode))
+  :mode (("\\.html?.erb\\'" . web-mode))
   :config (setq web-mode-enable-auto-pairing nil
                 web-mode-code-indent-offset 2
                 web-mode-markup-indent-offset 2