map .m to octave-mode. not sure resolving the conflict with obj-c-mode works (which is what used to be auto-selected for .m files), but it seems to pick octave-mode now ...
custom-formatted if snippet