Fix history cursor and add more editor settings