image-dired: Add -line-up-dynamic to window-configuration-change-hook

master
Pierre Neidhardt 2018-08-26 22:30:54 +02:00
parent c33b0ab8a4
commit 5a3ed7b061
2 changed files with 7 additions and 3 deletions

View File

@ -82,4 +82,11 @@
"|" iso "|"
"\\) +")))))
(when (executable-find "sxiv")
(setq image-dired-external-viewer "sxiv"))
(defun ambrevar/image-dired-setup ()
(add-hook 'window-configuration-change-hook 'image-dired-line-up-dynamic nil t))
(add-hook 'image-dired-thumbnail-mode-hook 'ambrevar/image-dired-setup)
(provide 'init-dired)

View File

@ -385,7 +385,4 @@
(setq abbrev-file-name (expand-file-name "abbrev_defs" "~/personal"))
(when (executable-find "sxiv")
(setq image-dired-external-viewer "sxiv"))
(provide 'main)