This sounds like
<s tab type language enter C-y
Or if you know the language use the right shortcut first. E.g. I use <p for python and <el for emacs lisp.
You could use a function for that but there are only 5 key strokes plus the keys for the language above! The function name would probably be longer.