summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/emacs/init.el3
-rw-r--r--user/settings/emacs.nix1
2 files changed, 4 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 39fd0eee..8dd7831c 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -775,6 +775,9 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
                   typescript-ts-mode-indent-offset 2)))
 (add-to-list 'major-mode-remap-alist '(typescript-mode . typescript-ts-mode))
 
+(use-package astro-ts-mode
+  :mode (("\\.astro\\'" . astro-ts-mode)))
+
 (autoload 'ansi-color-apply-on-region "ansi-color")
 (defun colourise-compilation-buffer ()
   (ansi-color-apply-on-region compilation-filter-start (point-max)))
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 631b75c7..2871173c 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -65,6 +65,7 @@ in
       [
         ace-link
         apheleia
+        astro-ts-mode
         avy
         benchmark-init
         cape