@Merlin246 unless you are trying to detect motor stalls at other times too, you need only use M915 in config.g.
If you are trying to detect stalls at other times too (so that you need two different sets of stall settings), you can use global variables to save repeating the values and make them easier to change. For example, in config.g:
global normalStallSettingX=3
global homingStallSettingX=1
then in homex.g, homey.g and homeall.g:
M915 H200 X S{homingStallSettingX} R0 F0
... do the homing
M915 H200 X S{normalStallSettingX} R0 F0
Similarly for the Y motor.