activate ycmd-mode in c files as well

ycmd-mode was only activated when entering c++-mode, making syntax
checking unavailable in c-mode, as flycheck-ycmd-mode is hooked to
ycmd-mode.
This commit is contained in:
deb0ch 2016-08-05 18:08:56 +02:00 committed by Eivind Fonn
parent dbbdca7d5d
commit 9c4a0657d0

View file

@ -123,6 +123,10 @@
(defun c-c++/post-init-ycmd ()
(add-hook 'c++-mode-hook 'ycmd-mode)
(spacemacs/set-leader-keys-for-major-mode 'c++-mode
"gg" 'ycmd-goto
"gG" 'ycmd-goto-imprecise)
(add-hook 'c-mode-hook 'ycmd-mode)
(spacemacs/set-leader-keys-for-major-mode 'c-mode
"gg" 'ycmd-goto
"gG" 'ycmd-goto-imprecise))