emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 484468a: image-dired: Set line-spacing to match horizontal space


From: Stefan Kangas
Subject: master 484468a: image-dired: Set line-spacing to match horizontal space
Date: Wed, 27 Oct 2021 01:54:42 -0400 (EDT)

branch: master
commit 484468a1af1d6a3e4bed16002e08ddbf4457dd01
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    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 d089d4a..f6a2637 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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]