add coding hook to c mode