HS2, perfect, exactly what I was looking for. If anyones interested, this is what I did:
int userSelectEditMode(_str origExt, boolean origBypassBufferSetup)
{
// say ("userSelectEditMode: bname:" p_buf_name " stripped:" strip_filename( p_buf_name, 'PDN' ));
if(_bufname2ext(p_buf_name) == 'c') {
show_braces();
expand_all();
}
return (1);
}