From 484468a1af1d6a3e4bed16002e08ddbf4457dd01 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Wed, 27 Oct 2021 07:51:35 +0200 Subject: [PATCH] image-dired: Set line-spacing to match horizontal space * lisp/image-dired.el (image-dired-thumbnail-mode): Set value of 'line-spacing' to approximately match horizontal space. This makes the thumbnail view look better. --- lisp/image-dired.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/image-dired.el b/lisp/image-dired.el index d089d4a26d9..f6a263749f2 100644 --- a/lisp/image-dired.el +++ b/lisp/image-dired.el @@ -1767,7 +1767,9 @@ You probably want to use this together with Use `image-dired-minor-mode' to get a nice setup." (buffer-disable-undo) (add-hook 'file-name-at-point-functions 'image-dired-file-name-at-point nil t) - (setq-local bookmark-make-record-function #'image-dired-bookmark-make-record)) + (setq-local bookmark-make-record-function #'image-dired-bookmark-make-record) + ;; Use approximately as much vertical spacing as horizontal. + (setq-local line-spacing (frame-char-width))) (define-derived-mode image-dired-display-image-mode special-mode "image-dired-image-display" -- 2.39.2