Emacs: install astro-ts-mode
Alan Pearce alan@alanpearce.eu
Fri, 12 Apr 2024 18:50:08 +0200
2 files changed, 4 insertions(+), 0 deletions(-)
M user/emacs/init.el → user/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.nix → user/settings/emacs.nix
@@ -65,6 +65,7 @@ extraPackages = epkgs: (with epkgs; [ ace-link apheleia + astro-ts-mode avy benchmark-init cape