;; enable autocomplete
(use-package company
:ensure t
+ :demand t ;; Needed to ensure global company-mode works.
+ :commands company-mode
:bind(:map company-active-map
("<return>" . nil)
("RET" . nil)
'(("\\.mdwn\\'" . markdown-mode)
("\\.md\\'" . markdown-mode)
("\\.yarn\\'" . markdown-mode)
+ ("\\.cpp\\'" . c++-mode)
("\\.js\\'" . js-mode)
("\\.json\\'" . js-mode)
("Makefile" . makefile-mode)