Ecaml.CustomizationSourceval defcustom :
?show_form:bool ->
Symbol.t ->
Core.Source_code_position.t ->
docstring:string ->
group:Group.t ->
type_:'a Ecaml_value.Value.Type.t ->
customization_type:Type.t ->
standard_value:'a ->
?on_set:('a -> unit) ->
unit ->
'a t(describe-function 'defcustom) (Info-goto-node "(elisp)Variable Definitions")
on_set, if supplied, is called when the user attempts to set the customization, either via the customization interface or via custom-set-variables. on_set can validate the input and perform other side effects needed to keep OCaml data structures in sync with the setting. If on_set raises, the customization is not set.
(describe-function 'customize-variable) (Info-goto-node "(emacs)Specific customization")
(describe-function 'customize-group) (Info-goto-node "(emacs)Specific customization")