Update saveplace to work with Emacs 25 (#1046)
This commit is contained in:
parent
8f014589a7
commit
2a49600680
1 changed files with 4 additions and 2 deletions
|
@ -108,10 +108,12 @@
|
||||||
(setq uniquify-ignore-buffers-re "^\\*") ; don't muck with special buffers
|
(setq uniquify-ignore-buffers-re "^\\*") ; don't muck with special buffers
|
||||||
|
|
||||||
;; saveplace remembers your location in a file when saving files
|
;; saveplace remembers your location in a file when saving files
|
||||||
(require 'saveplace)
|
|
||||||
(setq save-place-file (expand-file-name "saveplace" prelude-savefile-dir))
|
(setq save-place-file (expand-file-name "saveplace" prelude-savefile-dir))
|
||||||
;; activate it for all buffers
|
;; 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
|
;; savehist keeps track of some history
|
||||||
(require 'savehist)
|
(require 'savehist)
|
||||||
|
|
Loading…
Reference in a new issue