about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-01-15 22:05:50 -0600
committerCase Duckworth2022-01-15 22:05:50 -0600
commit7f1409896283e1ac61336ec3349cf6276a0a3f41 (patch)
treefba6f0a25bb5fc75193d6a44ebdd4682ea645366
parentTurn and face the strange (diff)
downloademacs-7f1409896283e1ac61336ec3349cf6276a0a3f41.tar.gz
emacs-7f1409896283e1ac61336ec3349cf6276a0a3f41.zip
Add web-mode
-rw-r--r--init.el11
1 files changed, 11 insertions, 0 deletions
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'."
1541(setup (:straight vlf) 1541(setup (:straight vlf)
1542 (:require vlf-setup)) 1542 (:require vlf-setup))
1543 1543
1544(setup (:straight web-mode)
1545 (setf (alist-get (rx "." (or "htm" "html" "phtml" "tpl.php"
1546 "asp" "gsp" "jsp" "ascx" "aspx"
1547 "erb" "mustache" "djhtml")
1548 eos)
1549 auto-mode-alist)
1550 'web-mode)
1551 (with-eval-after-load 'apheleia
1552 (setf (alist-get 'web-mode apheleia-mode-alist)
1553 'prettier)))
1554
1544(setup (:straight whitespace-cleanup-mode) 1555(setup (:straight whitespace-cleanup-mode)
1545 (:option whitespace-cleanup-mode-preserve-point t 1556 (:option whitespace-cleanup-mode-preserve-point t
1546 whitespace-cleanup-mode-only-if-initially-clean nil) 1557 whitespace-cleanup-mode-only-if-initially-clean nil)