aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2018-02-07 00:53:11 -0800
committerGravatar Tom Willemse2018-02-07 00:53:11 -0800
commit2e12d4c2511e08fff69c303b2893da78298933b3 (patch)
tree58943c8039517bd61d6b58f63ca1705648c0b293
parent1361ea7988a3b8ecb21d37e2a2c7b7b232591d2c (diff)
downloadnew-dotfiles-2e12d4c2511e08fff69c303b2893da78298933b3.tar.gz
new-dotfiles-2e12d4c2511e08fff69c303b2893da78298933b3.zip
Enable company mode in JavaScript
-rw-r--r--emacs/.emacs.d/init.org6
1 files changed, 6 insertions, 0 deletions
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 =<=