update mode line
move borrowed file, add insert-date func