push more code to lua

begin emacs support