Function: cc-choose-style-for-mode
cc-choose-style-for-mode is a byte-compiled function defined in
cc-styles.el.gz.
Signature
(cc-choose-style-for-mode MODE DEFAULT-STYLE)
Documentation
Return suitable style for MODE from DEFAULT-STYLE.
DEFAULT-STYLE has the same format as c-default-style.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-styles.el.gz
(defun cc-choose-style-for-mode (mode default-style)
"Return suitable style for MODE from DEFAULT-STYLE.
DEFAULT-STYLE has the same format as `c-default-style'."
(if (stringp default-style)
default-style
(or (cdr (assq mode default-style))
(cdr (assq 'other default-style))
"gnu")))