From 3845bbbaa16959445fc59038c03d54a6498c73f9 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 5 Jun 2024 14:29:38 +0200 Subject: Emacs: set cjs/mjs as alternative javascript file extensions --- user/emacs/init.el | 1 + 1 file changed, 1 insertion(+) (limited to 'user') diff --git a/user/emacs/init.el b/user/emacs/init.el index 701f79f0..a37a75a8 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -798,6 +798,7 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve ;;;; js (setq js-enabled-frameworks '(javascript)) +(add-to-list 'auto-mode-alist '("\\.[cm]js\\'" . js-ts-mode)) ;;;; typescript -- cgit 1.4.1