(customize-group (custom-group-of-mode mode)))
(defun customize-read-group ()
- (let ((completion-ignore-case t))
- (completing-read (format-prompt "Customize group" "emacs")
+ (let* ((sym (symbol-at-point))
+ (def (or (and sym
+ (or (and (get sym 'custom-loads)
+ (not (get sym 'custom-autoload)))
+ (get sym 'custom-group))
+ (symbol-name sym))
+ "emacs")))
+ (completing-read (format-prompt "Customize group" def)
obarray
(lambda (symbol)
(or (and (get symbol 'custom-loads)
(not (get symbol 'custom-autoload)))
(get symbol 'custom-group)))
- t)))
+ t nil nil def)))
;;;###autoload
(defun customize-group (&optional group other-window)