all repos — nixfiles @ bb8f0906552591d789b20897d53fe4e845dd801f

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

Emacs: install astro-ts-mode
Alan Pearce alan@alanpearce.eu
Fri, 12 Apr 2024 18:50:08 +0200
commit

bb8f0906552591d789b20897d53fe4e845dd801f

parent

4c66928368886bb64c3b5751d0265891cf6aebf6

2 files changed, 4 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -775,6 +775,9 @@ (setq typescript-indent-level 2                   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)))
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -65,6 +65,7 @@ extraPackages = epkgs: (with epkgs;       [
         ace-link
         apheleia
+        astro-ts-mode
         avy
         benchmark-init
         cape