diff options
| author | 2025-10-21 17:48:01 +0300 | |
|---|---|---|
| committer | 2025-10-21 17:48:01 +0300 | |
| commit | 2413a0897824a422e27c4e318ff6e43bfa8ca554 (patch) | |
| tree | 4c43c9591a8244c42121a7cfaf8d11375b4a3320 | |
| parent | emacs: Add marginalia (diff) | |
| download | dotfiles-2413a0897824a422e27c4e318ff6e43bfa8ca554.tar.gz dotfiles-2413a0897824a422e27c4e318ff6e43bfa8ca554.tar.xz dotfiles-2413a0897824a422e27c4e318ff6e43bfa8ca554.zip | |
emacs: Bump up minimum to 30.1
I realised there's probably tons of incompatibilities with 29 because I am not testing with it anymore.
| -rw-r--r-- | emacs/.config/emacs/init.el | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/emacs/.config/emacs/init.el b/emacs/.config/emacs/init.el index 1fc8f7c..8e54d71 100644 --- a/emacs/.config/emacs/init.el +++ b/emacs/.config/emacs/init.el | |||
| @@ -5,15 +5,13 @@ | |||
| 5 | (unless (boundp 'loaded-early-init) | 5 | (unless (boundp 'loaded-early-init) |
| 6 | (load (expand-file-name "early-init" (file-name-directory load-file-name)) nil t)) | 6 | (load (expand-file-name "early-init" (file-name-directory load-file-name)) nil t)) |
| 7 | 7 | ||
| 8 | (when (version< emacs-version "29.1") | 8 | (when (version< emacs-version "30.1") |
| 9 | (error "Using %s. Minimum supported version is 29.1." | 9 | (error "Using %s. Minimum supported version is 30.1." |
| 10 | (emacs-version))) | 10 | (emacs-version))) |
| 11 | 11 | ||
| 12 | (setq-default user-full-name "Uko Kokņevičs" | 12 | (setq-default user-full-name "Uko Kokņevičs" |
| 13 | user-mail-address "perkontevs@gmail.com") | 13 | user-mail-address "perkontevs@gmail.com") |
| 14 | 14 | ||
| 15 | (defconst +emacs29+ (version< emacs-version "30.0")) | ||
| 16 | |||
| 17 | (defconst +linux+ (eq system-type 'gnu/linux)) | 15 | (defconst +linux+ (eq system-type 'gnu/linux)) |
| 18 | (defconst +mac+ (eq system-type 'darwin)) | 16 | (defconst +mac+ (eq system-type 'darwin)) |
| 19 | (defconst +bsd+ (or +mac+ (eq system-type 'berkeley-unix))) | 17 | (defconst +bsd+ (or +mac+ (eq system-type 'berkeley-unix))) |
| @@ -196,9 +194,9 @@ | |||
| 196 | (straight-freeze-versions)) | 194 | (straight-freeze-versions)) |
| 197 | 195 | ||
| 198 | ;; compat | 196 | ;; compat |
| 199 | (use-package compat-30 | 197 | ;; (use-package compat-31 |
| 200 | :if +emacs29+ | 198 | ;; :if +emacs30+ |
| 201 | :straight 'compat) | 199 | ;; :straight 'compat) |
| 202 | 200 | ||
| 203 | ;; Helper functions | 201 | ;; Helper functions |
| 204 | (defmacro defsetter (name &rest emacs-names) | 202 | (defmacro defsetter (name &rest emacs-names) |