My company has very specific indentation rules for C code. I want to create a style from those rules, and have it load at startup.
Doing a C/Guess Style From This Buffer and C/Install Last Guessed Style works great. It indents properly. But it goes away when I exit Emacs, and I have to guess and install the style again.
So I a did a C/View Last Guessed Style. I get a buffer with a very long lisp expression (78 lines) starting with
(c-add-style "STYLE NAME HERE" '("style-name-I-installed-interactively" (c-basic-offset . 3) ; Guessed value (c-offsets-alist (arglist-cont . 0) ; Guessed value (arglist-intro . ++) ; Guessed value
I was a little confused why it asked me to enter a style name when I already did, and it listed it in the lisp (as I show above), but I changed the style name to what I wanted, which was identical to
When I evaluate this buffer, everything is fine, but when I go to set the style (
C-c .), I see
c-get-style-variables: Variable binding depth exceeds max-specpdl-size