Add gist-mode

Signed-off-by: coldnew <coldnew.tw@gmail.com>