Require Emacs 25.1

This commit is contained in:
Bozhidar Batsov 2018-07-10 09:01:24 +03:00
parent 79c2e6fb40
commit c28686af80
3 changed files with 6 additions and 10 deletions

View file

@ -12,9 +12,9 @@ library to the mix. The final product offers an easy to use Emacs
configuration for Emacs newcomers and lots of additional power for configuration for Emacs newcomers and lots of additional power for
Emacs power users. Emacs power users.
Prelude is compatible **ONLY with GNU Emacs 24.4+**. In general you're Prelude is compatible **ONLY with GNU Emacs 25.1+**. In general you're
advised to always run Prelude with the latest Emacs - currently advised to always run Prelude with the latest Emacs - currently
**25.2**. **26.1**.
You can support the development of Prelude via You can support the development of Prelude via
[Salt](https://bountysource.com/teams/prelude), [Salt](https://bountysource.com/teams/prelude),

View file

@ -110,10 +110,7 @@
;; saveplace remembers your location in a file when saving files ;; saveplace remembers your location in a file when saving files
(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
(if (< emacs-major-version 25) (save-place-mode 1)
(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)
@ -178,8 +175,7 @@ The body of the advice is in BODY."
(add-hook 'mouse-leave-buffer-hook 'prelude-auto-save-command) (add-hook 'mouse-leave-buffer-hook 'prelude-auto-save-command)
(when (version<= "24.4" emacs-version) (add-hook 'focus-out-hook 'prelude-auto-save-command)
(add-hook 'focus-out-hook 'prelude-auto-save-command))
(defadvice set-buffer-major-mode (after set-major-mode activate compile) (defadvice set-buffer-major-mode (after set-major-mode activate compile)
"Set buffer major mode according to `auto-mode-alist'." "Set buffer major mode according to `auto-mode-alist'."

View file

@ -45,8 +45,8 @@
(message "Prelude is powering up... Be patient, Master %s!" current-user) (message "Prelude is powering up... Be patient, Master %s!" current-user)
(when (version< emacs-version "24.4") (when (version< emacs-version "25.1")
(error "Prelude requires at least GNU Emacs 24.4, but you're running %s" emacs-version)) (error "Prelude requires GNU Emacs 25.1 or newer, but you're running %s" emacs-version))
;; Always load newest byte code ;; Always load newest byte code
(setq load-prefer-newer t) (setq load-prefer-newer t)