Browse Source

Require Emacs 25.1

custom
Bozhidar Batsov 8 years ago
parent
commit
c28686af80
  1. 4
      README.md
  2. 8
      core/prelude-editor.el
  3. 4
      init.el

4
README.md

@ -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
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
**25.2**.
**26.1**.
You can support the development of Prelude via
[Salt](https://bountysource.com/teams/prelude),

8
core/prelude-editor.el

@ -110,10 +110,7 @@
;; saveplace remembers your location in a file when saving files
(setq save-place-file (expand-file-name "saveplace" prelude-savefile-dir))
;; activate it for all buffers
(if (< emacs-major-version 25)
(progn (require 'saveplace)
(setq-default save-place t))
(save-place-mode 1))
(save-place-mode 1)
;; savehist keeps track of some history
(require 'savehist)
@ -178,8 +175,7 @@ The body of the advice is in BODY."
(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)
"Set buffer major mode according to `auto-mode-alist'."

4
init.el

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

Loading…
Cancel
Save