Module Hook.Function
val sexp_of_t : ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a t -> Ppx_sexp_conv_lib.Sexp.t
val create : Symbol.t -> Core_kernel.Source_code_position.t -> ?docstring:string -> ?should_profile:bool -> hook_type:'a Hook_type.t -> (unit, 'r) Defun.Returns.t -> ('a -> 'r) -> 'a tcreate here return_type symbol fdefines an emacs function namedsymbolthat runsfwhen called. It returns an'a tusable for modifying hooks.
val create_with_self : Symbol.t -> Core_kernel.Source_code_position.t -> ?docstring:string -> hook_type:'a Hook_type.t -> (unit, 'r) Defun.Returns.t -> ('a t -> 'a -> 'r) -> 'a tcreate_with_self here return_type symbol fworks the same ascreate, except that the'a tit returns is also passed as an argument tof.This is useful, for example, if
fwants to remove itself from a hook once it is called.