From 3515f3e0842ed07a7422125b4b67bc8512ac2822 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 14 Mar 2025 18:16:55 +0100 Subject: [PATCH] Explicitly mark Emacs 30.1 Dired features as such MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids setting those variables in EmacsĀ 29.x, which is still supported by this configuration (it won't hurt much to set those variables in this case as well, though). --- init.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 7c266b0..d65bdb4 100644 --- a/init.el +++ b/init.el @@ -2050,8 +2050,11 @@ Note that this workaround is incomplete, as explained in this comment." dired-isearch-filenames 'dwim dired-auto-revert-buffer t dired-clean-confirm-killing-deleted-buffers t - dired-clean-up-buffers-too t - dired-movement-style 'bounded) + dired-clean-up-buffers-too t) + + (when (version<= "30" emacs-version) + (setq dired-movement-style 'bounded + dired-filename-display-length nil)) (setq dired-guess-shell-alist-user '(("\\.pdf\\'" "evince")