change ruler format, restore cursor location when reopening files