How to define autoBeamSettings in the \layout block

If you need to modify the automatic beaming behaviour (as explained in the Notation Reference) in the \layout block, here is a simple way to achieve it.