Function: custom-group-of-mode
custom-group-of-mode is a byte-compiled function defined in
custom.el.gz.
Signature
(custom-group-of-mode MODE)
Documentation
Return the custom group corresponding to the major or minor MODE.
If no such group is found, return nil.
Source Code
;; Defined in /usr/src/emacs/lisp/custom.el.gz
(defun custom-group-of-mode (mode)
"Return the custom group corresponding to the major or minor MODE.
If no such group is found, return nil."
(or (get mode 'custom-mode-group)
(if (or (get mode 'custom-group)
(and (string-match "-mode\\'" (symbol-name mode))
(get (setq mode (intern (substring (symbol-name mode)
0 (match-beginning 0))))
'custom-group)))
mode)))