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
1 changed files with 2 additions and 2 deletions
|
@ -253,8 +253,8 @@
|
||||||
(use-package google-c-style
|
(use-package google-c-style
|
||||||
:if (or 'c-c++-enable-google-style 'c-c++-enable-google-newline)
|
:if (or 'c-c++-enable-google-style 'c-c++-enable-google-newline)
|
||||||
:config (progn
|
:config (progn
|
||||||
(when 'c-c++-enable-google-style (add-hook 'c-mode-common-hook 'google-set-c-style))
|
(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-newline (add-hook 'c-mode-common-hook 'google-make-newline-indent)))))
|
||||||
|
|
||||||
(defun c-c++/post-init-semantic ()
|
(defun c-c++/post-init-semantic ()
|
||||||
(spacemacs/add-to-hooks 'semantic-mode c-c++-mode-hooks))
|
(spacemacs/add-to-hooks 'semantic-mode c-c++-mode-hooks))
|
||||||
|
|
Reference in a new issue