]> git.eshelyaron.com Git - emacs.git/commitdiff
image-dired: Set line-spacing to match horizontal space
authorStefan Kangas <stefan@marxist.se>
Wed, 27 Oct 2021 05:51:35 +0000 (07:51 +0200)
committerStefan Kangas <stefan@marxist.se>
Wed, 27 Oct 2021 05:53:03 +0000 (07:53 +0200)
* 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

index d089d4a26d92f76a48d7b0d6e14f84a66890e3e5..f6a263749f225f3477c1b6c327dbc6d019cdadd6 100644 (file)
@@ -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"