all repos — archive/dotfiles @ 3477d9f8e72164366e7c222515082f47b6d9a962

Superseded by nixfiles

Emacs: Open composer.lock files with json-mode
Alan Pearce alan@alanpearce.co.uk
Thu, 14 Jan 2016 19:38:17 +0100
commit

3477d9f8e72164366e7c222515082f47b6d9a962

parent

f9009077e3781b77c9caaf2ddea066119a742910

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -1956,8 +1956,6 @@ (bind-key "M-g M-p" #'ap/js2-prev-error js2-mode-map)               (add-hook 'js2-mode-hook #'ap/javascript-setup)
               (setq js2-basic-offset 4
                     js2-include-node-externs t)))
-
-  (add-to-list 'auto-mode-alist '("composer\\.lock" . js-mode))
 #+END_SRC
 
 *** coffee-mode
@@ -1993,7 +1991,8 @@ #+BEGIN_SRC emacs-lisp
   (use-package json-mode
     :mode (("\\.json\\'" . json-mode)
-           ("\\.sailsrc\\'" . json-mode)))
+           ("\\.sailsrc\\'" . json-mode)
+           ("composer\\.lock\\'" . json-mode)))
 #+END_SRC
 
 *** restclient