A major mode for impcore