Source file face.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
open! Core_kernel
open! Import0
include Face0

let defface name here ~docstring ~customization_group specs =
  Form.(
    Blocking.eval_i
      (list
         [ symbol Q.defface
         ; symbol (Symbol.intern name)
         ; quote (specs_to_value specs)
         ; string docstring
         ; Q.K.group |> symbol
         ; customization_group |> Customization.Group.to_value |> quote
         ]));
  let t = of_name name in
  Load_history.add_entry here (Face t);
  t
;;