From 656d9b08d5068d4c78a9e2effbdb83fb06480a4a Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 22 Jan 2020 21:26:33 +0900 Subject: [PATCH] Fix saveplace first load --- emacs.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 6b80cf2..1915442 100644 --- a/emacs.el +++ b/emacs.el @@ -1052,8 +1052,12 @@ Otherwize hook it." ;; save cursor position (when (fboundp 'save-place-mode) + (autoload 'save-place-find-file-hook "saveplace") (add-hook 'after-first-visit-hook - 'save-place-mode)) + 'save-place-mode) + (add-hook 'after-first-visit-hook + 'save-place-find-file-hook + t)) (set-variable 'save-place-file (concat user-emacs-directory "places"))