add insert time function to .emacs