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:
parent
f48f75e23f
commit
4ea177ce97
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue