According to the documentation, c-default-style can either be an alist or a string ("When the value is a string, all CC Mode major modes will install this style by default."); the following code, however, fails when c-default-style is a string:
Changing the above block to the one below corrects the error that crops up when using a string value for c-default-style (in my case, the error is Wrong type argument: listp, "linux"). The change also respects the user's explicit intent of using a single coding style for all c-derived languages:
According to the documentation,
c-default-style
can either be an alist or a string ("When the value is a string, all CC Mode major modes will install this style by default."); the following code, however, fails whenc-default-style
is a string:Changing the above block to the one below corrects the error that crops up when using a string value for
c-default-style
(in my case, the error isWrong type argument: listp, "linux"
). The change also respects the user's explicit intent of using a single coding style for all c-derived languages: