From: Joost Kremers <joostkremers@fastmail.fm>
To: help-gnu-emacs@gnu.org
Subject: Re: Little help with defcustom
Date: Mon, 09 Nov 2020 14:41:03 +0100 [thread overview]
Message-ID: <87pn4mps0g.fsf@fastmail.fm> (raw)
In-Reply-To: <X6kH6Eo/TwPN4wfs@protected.rcdrun.com>
On Mon, Nov 09 2020, Jean Louis wrote:
> I need little help with defcustom. I would like to define defcustom
> structure for:
>
> Multiple inserts INS DEL:
>
> - Server name
> - Host name
> - User name
> - Password
> - Port number (integer up to 65535)
> - Activated (boolean)
>
> And then to define second defcustom structure with multiple inserts
> INS DEL:
>
> - Server name (referencing the above server name)
> - Set name (belonging to this server)
> - Node ID (integer, by default empty)
> - Updatable (boolean)
You can get the multiple inserts with the customisation type `repeat'. Other
than that, it's hard to give you any specific advice because you're not saying
what you're having trouble with. Have you looked at the documentation (info
"(elisp) Customization")? There are also tons of defcustoms in the Emacs source,
so you could take a user option in a Customize buffer that looks like what you
want and then check out how it's defined.
--
Joost Kremers
Life has its moments
next prev parent reply other threads:[~2020-11-09 13:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-09 9:12 Little help with defcustom Jean Louis
2020-11-09 13:41 ` Joost Kremers [this message]
2020-11-09 16:35 ` Jean Louis
2020-11-09 19:14 ` Joost Kremers
2020-11-09 20:31 ` Jean Louis
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pn4mps0g.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.