Toggle line numbering style on mode switch