From 1c735777d85a26ca4d113b7dda879e97d13767d2 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Thu, 10 Jul 2025 19:50:38 +0100 Subject: Auto-redisplay org blocks images and use image attributes for width --- emacs-config.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/emacs-config.org b/emacs-config.org index 8a64f37..f2ec9ca 100644 --- a/emacs-config.org +++ b/emacs-config.org @@ -345,6 +345,16 @@ Case-sensitive search by default and show match count in minibuffer. <>) #+end_src +Try to get the width from attribute tags or fall-back to original image width. +Also redisplay updated images on block execution. +#+begin_src elisp + (setq-default org-image-actual-width nil) + (add-hook 'org-babel-after-execute-hook + (lambda () "Redisplay Org inline images." + (when org-inline-image-overlays + (org-redisplay-inline-images)))) +#+end_src + Use custom IDs for links. #+begin_src elisp (with-eval-after-load 'org-id -- cgit