summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-10-27 07:51:35 +0200
committerStefan Kangas <stefan@marxist.se>2021-10-27 07:53:03 +0200
commit484468a1af1d6a3e4bed16002e08ddbf4457dd01 (patch)
tree0a76ff045a9c2b0c94e130c8da32663e45f7d0c0
parent4febba2c61722817ed2da0c775ac8b6acc4d1afa (diff)
downloademacs-484468a1af1d6a3e4bed16002e08ddbf4457dd01.tar.gz
emacs-484468a1af1d6a3e4bed16002e08ddbf4457dd01.tar.bz2
emacs-484468a1af1d6a3e4bed16002e08ddbf4457dd01.zip
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.
-rw-r--r--lisp/image-dired.el4
1 files changed, 3 insertions, 1 deletions
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"