Emacs has a little package called SaveSpace that makes Emacs remember the position of the cursor for each file you opened. It’s nice to open a file and the cursor automatically jumps to where it was last. Sweet!

To enable SaveSpace, add the following configurations in your ~/.emacs file

(setq save-place-file “~/.emacs.d/saveplace”)
(setq-default save-place t)
(require ‘saveplace)