file saving and auto backup; change cursor color when buffer is modified