From 2a49600680520da691cf752b93922ad247baf38d Mon Sep 17 00:00:00 2001 From: Joel Holder Date: Wed, 26 Oct 2016 02:36:17 -0400 Subject: [PATCH] Update saveplace to work with Emacs 25 (#1046) --- core/prelude-editor.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/prelude-editor.el b/core/prelude-editor.el index a6fb141..93ec4bc 100644 --- a/core/prelude-editor.el +++ b/core/prelude-editor.el @@ -108,10 +108,12 @@ (setq uniquify-ignore-buffers-re "^\\*") ; don't muck with special buffers ;; saveplace remembers your location in a file when saving files -(require 'saveplace) (setq save-place-file (expand-file-name "saveplace" prelude-savefile-dir)) ;; activate it for all buffers -(setq-default save-place t) +(if (< emacs-major-version 25) + (progn (require 'saveplace) + (setq-default save-place t)) + (save-place-mode 1)) ;; savehist keeps track of some history (require 'savehist)