summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.el
diff options
context:
space:
mode:
authorAlan Pearce2014-11-08 17:33:07 +0000
committerAlan Pearce2014-11-08 17:33:07 +0000
commit4d2d0a9511159eca3a3c8945d13fe36821c5e7e6 (patch)
tree6b1967b5d9a80a44b6caf8e96f897fa9709b30ab /tag-emacs/emacs.d/init.el
parent3503c771b792143ba74d97db8100d88e341615dd (diff)
downloadnixfiles-4d2d0a9511159eca3a3c8945d13fe36821c5e7e6.tar.lz
nixfiles-4d2d0a9511159eca3a3c8945d13fe36821c5e7e6.tar.zst
nixfiles-4d2d0a9511159eca3a3c8945d13fe36821c5e7e6.zip
Emacs: Open composer.lock files in js-mode
Diffstat (limited to 'tag-emacs/emacs.d/init.el')
-rw-r--r--tag-emacs/emacs.d/init.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 120c85b2..3187d090 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1254,6 +1254,8 @@ mouse-1: Display Line and Column Mode Menu"))))))
             (setq js2-basic-offset 4
                   js2-global-externs '("$"))))
 
+(add-to-list 'auto-mode-alist '("composer\\.lock" . js-mode))
+
 (req-package jquery-doc
   :defer t
   :init (progn