Emacs Init: Save Cursor Position

By Xah Lee. Date: . Last updated: .

You can make emacs remember cursor position.

Put this in your Emacs Init File:

 ((< emacs-major-version 25)
  (require 'saveplace)
  (setq-default save-place t))
 ((>= emacs-major-version 25)
  (save-place-mode 1)))
Variable. Name of the file that records save-place-alist value. By default its ~/.emacs.d/places

saveplace.el is written by Karl Fogel since 1993. Karl is also the author of Emacs Bookmark Feature. Thanks Karl.

Emacs, Restore Opened File, Window