c-c++: Unquote google-set-c-style layer variables

The google-set-c-style functions are added to `c-mode-common-hook`
regardless of their value.

Fix #10080
This commit is contained in:
Martin Øinæs Myrseth 2018-01-19 15:10:32 +01:00 committed by syl20bnr
parent f48f75e23f
commit 4ea177ce97

View file

@ -253,8 +253,8 @@
(use-package google-c-style
:if (or 'c-c++-enable-google-style 'c-c++-enable-google-newline)
:config (progn
(when 'c-c++-enable-google-style (add-hook 'c-mode-common-hook 'google-set-c-style))
(when 'c-c++-enable-google-newline (add-hook 'c-mode-common-hook 'google-make-newline-indent)))))
(when c-c++-enable-google-style (add-hook 'c-mode-common-hook 'google-set-c-style))
(when c-c++-enable-google-newline (add-hook 'c-mode-common-hook 'google-make-newline-indent)))))
(defun c-c++/post-init-semantic ()
(spacemacs/add-to-hooks 'semantic-mode c-c++-mode-hooks))