From 2e12d4c2511e08fff69c303b2893da78298933b3 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 7 Feb 2018 00:53:11 -0800 Subject: [PATCH] Enable company mode in JavaScript --- emacs/.emacs.d/init.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 67cf092..a5d2bcc 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1219,6 +1219,12 @@ Computing Environment". (setq js2-basic-offset 2) #+END_SRC + Enable company mode for completions. + + #+BEGIN_SRC emacs-lisp + (add-hook 'js2-mode-hook 'company-mode) + #+END_SRC + ** HTML mode Enable electric pairing so I don't have to worry about closing =<=