fix linum and change undo setting