Require at least Emacs 30
This commit is contained in:
parent
6c899154ca
commit
c271947e68
@ -3,7 +3,7 @@
|
|||||||
My personal Emacs Configuration, containing bits of code collected from around
|
My personal Emacs Configuration, containing bits of code collected from around
|
||||||
the web. Have fun with it!
|
the web. Have fun with it!
|
||||||
|
|
||||||
This configuration is known to work with Emacs 29.1 (and later) on
|
This configuration is known to work with Emacs 30.1 (and later) on
|
||||||
Debian GNU/Linux and Windows 11 (sigh).
|
Debian GNU/Linux and Windows 11 (sigh).
|
||||||
|
|
||||||
* Features
|
* Features
|
||||||
|
|||||||
22
init.el
22
init.el
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
;; * Preliminaries (constants and path settings)
|
;; * Preliminaries (constants and path settings)
|
||||||
|
|
||||||
(when (version< emacs-version "29")
|
(when (version< emacs-version "30")
|
||||||
(error "Emacs version is too old! We need at least Emacs 29, but this is %s"
|
(error "Emacs version is too old! We need at least Emacs 29, but this is %s"
|
||||||
emacs-version))
|
emacs-version))
|
||||||
|
|
||||||
@ -1970,8 +1970,7 @@ Note that this workaround is incomplete, as explained in this comment."
|
|||||||
gnutls-verify-error t))
|
gnutls-verify-error t))
|
||||||
|
|
||||||
(use-package epa
|
(use-package epa
|
||||||
:init (when (version<= "30" emacs-version)
|
:init (setq epa-keys-select-method 'minibuffer))
|
||||||
(setq epa-keys-select-method 'minibuffer)))
|
|
||||||
|
|
||||||
(use-package epg
|
(use-package epg
|
||||||
:init (setq epg-debug t
|
:init (setq epg-debug t
|
||||||
@ -2091,11 +2090,9 @@ Note that this workaround is incomplete, as explained in this comment."
|
|||||||
dired-isearch-filenames 'dwim
|
dired-isearch-filenames 'dwim
|
||||||
dired-auto-revert-buffer t
|
dired-auto-revert-buffer t
|
||||||
dired-clean-confirm-killing-deleted-buffers t
|
dired-clean-confirm-killing-deleted-buffers t
|
||||||
dired-clean-up-buffers-too t)
|
dired-clean-up-buffers-too t
|
||||||
|
dired-movement-style 'bounded
|
||||||
(when (version<= "30" emacs-version)
|
dired-filename-display-length nil)
|
||||||
(setq dired-movement-style 'bounded
|
|
||||||
dired-filename-display-length nil))
|
|
||||||
|
|
||||||
(setq dired-guess-shell-alist-user
|
(setq dired-guess-shell-alist-user
|
||||||
'(("\\.pdf\\'" "evince")
|
'(("\\.pdf\\'" "evince")
|
||||||
@ -2652,10 +2649,7 @@ eventuelly be set to nil, however)."
|
|||||||
eshell-prompt-function #'eshell/default-prompt-function
|
eshell-prompt-function #'eshell/default-prompt-function
|
||||||
eshell-highlight-prompt nil
|
eshell-highlight-prompt nil
|
||||||
eshell-cd-on-directory t
|
eshell-cd-on-directory t
|
||||||
eshell-expand-input-functions '(eshell-expand-history-references))
|
eshell-expand-input-functions '(eshell-expand-history-references)))
|
||||||
|
|
||||||
(when (version< emacs-version "30")
|
|
||||||
(setq eshell-prompt-regexp "└─[$#] ")))
|
|
||||||
|
|
||||||
:bind (:map eshell-mode-map
|
:bind (:map eshell-mode-map
|
||||||
("M-P" . eshell-previous-prompt)
|
("M-P" . eshell-previous-prompt)
|
||||||
@ -2683,10 +2677,6 @@ eventuelly be set to nil, however)."
|
|||||||
(add-hook 'eshell-mode-hook
|
(add-hook 'eshell-mode-hook
|
||||||
'with-editor-export-editor)
|
'with-editor-export-editor)
|
||||||
|
|
||||||
(when (version< emacs-version "30")
|
|
||||||
(autoload 'eshell-bol "esh-mode.el")
|
|
||||||
(bind-key "C-a" #'eshell-bol eshell-mode-map))
|
|
||||||
|
|
||||||
;; Ignoring case when completing file names seems to have a
|
;; Ignoring case when completing file names seems to have a
|
||||||
;; bug: when a ~ is encountered, it is implicitly expaned by
|
;; bug: when a ~ is encountered, it is implicitly expaned by
|
||||||
;; `pcomplete-insert-entry’, overwriting the prompt as a side
|
;; `pcomplete-insert-entry’, overwriting the prompt as a side
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user