set c/c++ mode hook