Make some modes optional

Erlang, markdown cnad caml

Signed-off-by: Christopher Hall <hsw@ms2.hinet.net>