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:
parent
dbbdca7d5d
commit
9c4a0657d0
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue