summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-11-08 17:33:07 +0000
committerAlan Pearce2014-11-08 17:33:07 +0000
commit4d2d0a9511159eca3a3c8945d13fe36821c5e7e6 (patch)
tree6b1967b5d9a80a44b6caf8e96f897fa9709b30ab
parent3503c771b792143ba74d97db8100d88e341615dd (diff)
downloaddotfiles-4d2d0a9511159eca3a3c8945d13fe36821c5e7e6.tar.lz
dotfiles-4d2d0a9511159eca3a3c8945d13fe36821c5e7e6.tar.zst
dotfiles-4d2d0a9511159eca3a3c8945d13fe36821c5e7e6.zip
Emacs: Open composer.lock files in js-mode
-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 120c85b..3187d09 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