Make imenu rescan buffer automatically