From: Drew Adams <drew.adams@oracle.com>
To: "wael-zwaiter@gmx.com" <wael-zwaiter@gmx.com>,
Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Structuring minor mode into subgroups
Date: Tue, 26 Jan 2021 21:04:53 +0000 [thread overview]
Message-ID: <SA2PR10MB44743A6248781AE8B594DC07F3BC9@SA2PR10MB4474.namprd10.prod.outlook.com> (raw)
In-Reply-To: <trinity-396abac3-d88f-4af9-b801-dac769bc51e6-1611689136878@3c-app-mailcom-bs11>
> Can someone show me how I may structure the customisations of a minor mode
> into subgroups?
Not sure what you mean, but maybe this will help.
If you do `M-x customize-group Icicles' you see this:
,----
| Parent groups: dabbrev recentf convenience minibuffer
| completion matching apropos help
|
| Icicles group:
| State : visible group members are all at standard values.
| Minibuffer input completion and cycling of completion candidates.
| See also Doc-Part1, Doc-Part2, Description, Download,
| Other Libraries by Drew, and Send Bug Report.
|
| Subgroups:
| Icicles-Buffers Preferences related to buffers.
| Icicles-Completions-Display Preferences related to display of
| completion candidates.
| Icicles-Files Preferences related to files.
| Icicles-Key-Bindings Preferences related to key bindings.
| Icicles-Key-Completion Preferences related to key completion.
| Icicles-Matching Preferences related to matching input
| for completion.
| Icicles-Minibuffer-Display Preferences related to minibuffer
| display during completion.
| Icicles-Miscellaneous Miscellaneous preferences.
| Icicles-Searching Preferences related to searching.
`----
You can define a subgroup by specifying the group
you want to be its parent as one of _its_ groups.
E.g., the `defgroup' of `Icicles-Matching' has
`:group 'Icicles', which means it's a subgroup
of group `Icicles'.
(defgroup Icicles-Matching nil
"Icicles preferences related to matching input for completion."
:prefix "icicle-" :group 'Icicles)
Then, a particular `defcustom' or `defface' can
specify which groups apply to it. E.g.:
(defcustom icicle-file-sort nil
"*A sort function for file names, or nil.
Examples of sort functions are `icicle-dirs-first-p',
`icicle-latest-access-first-p', and
`icicle-latest-modification-first-p'.
If nil, then file names are not sorted."
:type '(choice
(const :tag "None" nil)
(function :value icicle-dirs-first-p))
:group 'Icicles-Files :group 'Icicles-Completions-Display)
^^^^^^ ^^^^^^
The groups are defined in file `icicles-face.el'.
https://www.emacswiki.org/emacs/download/icicles-face.el
prev parent reply other threads:[~2021-01-26 21:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-26 19:25 Structuring minor mode into subgroups wael-zwaiter
2021-01-26 21:04 ` Drew Adams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SA2PR10MB44743A6248781AE8B594DC07F3BC9@SA2PR10MB4474.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=wael-zwaiter@gmx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).