all repos — nixfiles @ 3845bbbaa16959445fc59038c03d54a6498c73f9

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

Emacs: set cjs/mjs as alternative javascript file extensions
Alan Pearce alan@alanpearce.eu
Wed, 05 Jun 2024 14:29:38 +0200
commit

3845bbbaa16959445fc59038c03d54a6498c73f9

parent

7ef7b58c58d6108428ed0c7d85cb151b28e969c4

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -798,6 +798,7 @@ '(nim-mode "nimlsp")))) 
 ;;;; js
 (setq js-enabled-frameworks '(javascript))
+(add-to-list 'auto-mode-alist '("\\.[cm]js\\'" . js-ts-mode))
 
 ;;;; typescript