set pandoc path
add cmd_mode