Below is an LTspice simulation to show the basic operation of a simple Hysteretic regulator, requiring just a comparator to drive the MOSFET.
When the output drops below the reference voltage Vref, as determined by R1 and R3, it turns the MOSFET on.
When the output goes above the reference voltage, it turns the MOSFET off.
The switching frequency is determined by a combination of the values of the inductor, output capacitor, and load current.
This type of regulator requires no loop compensation, as the one in post #9 does that uses a fixed frequency PWM modulator circuit.
.C3 provides a slow startup ramp for Vref so the output voltage doesn't oveshoot.
In an actual circuit, the voltage reference would likely be provided by a voltage reference to prevent any input voltage variation from affecting the output voltage.