package ecaml
Library for writing Emacs plugin in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
ecaml-v0.14.0.tar.gz
sha256=ca97b30782e1b9fc42ccd54ba6afd60a7eb1087b56f3e21076ae33abfa638dfa
md5=ecae1a972130cd93c64eecc1ed71cad1
doc/ecaml.ecaml_value/Ecaml_value/Caml_embed/index.html
Module Ecaml_value.Caml_embed
val lookup_by_id_exn :
Ecaml_value__.Caml_embedded_id.t ->
'a Core_kernel.Type_equal.Id.t ->
'a
val debug_sexp : unit -> Core_kernel.Sexp.t
val create_type : 'a Core_kernel.Type_equal.Id.t -> 'a Value.Type.t
Embed values of an arbitrary OCaml type 'a
in an Elisp value. The values are not transformed, so this can be used to preserve state in Emacs. More precisely, the following returns true
:
let var = Var.create symbol (Caml_embed.create_type type_id) in
Current_buffer.set_value var v;
phys_equal v (Current_buffer.value_exn var)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>