Activate advice using flags
Only check edts-mode if it's bound