From 7f1409896283e1ac61336ec3349cf6276a0a3f41 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 15 Jan 2022 22:05:50 -0600 Subject: Add web-mode --- init.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init.el b/init.el index c78f482..4136271 100644 --- a/init.el +++ b/init.el @@ -1541,6 +1541,17 @@ See also `crux-reopen-as-root-mode'." (setup (:straight vlf) (:require vlf-setup)) +(setup (:straight web-mode) + (setf (alist-get (rx "." (or "htm" "html" "phtml" "tpl.php" + "asp" "gsp" "jsp" "ascx" "aspx" + "erb" "mustache" "djhtml") + eos) + auto-mode-alist) + 'web-mode) + (with-eval-after-load 'apheleia + (setf (alist-get 'web-mode apheleia-mode-alist) + 'prettier))) + (setup (:straight whitespace-cleanup-mode) (:option whitespace-cleanup-mode-preserve-point t whitespace-cleanup-mode-only-if-initially-clean nil) -- cgit 1.4.1-21-gabe81