Currently in the major mode I am writing pressing tab moves the point a certain number of spaces.
What I want to happen is more like how python mode makes it so that tab moves the whole line to the correct indentation.
Does anyone know how this is done?
Set
indent-line-functionappropriately in the major mode function, e.g. with something like