summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2025-07-10 19:50:38 +0100
committerBlake Romero <blake@blkrom.com>2025-07-10 19:50:38 +0100
commit1c735777d85a26ca4d113b7dda879e97d13767d2 (patch)
treedb2559bfa3a101634e4b18a2d77913f0c82390f6
parentc2c614c0b11d9fb09c4000d3d5e78f9dc48629bc (diff)
Auto-redisplay org blocks images and use image attributes for width
-rw-r--r--emacs-config.org10
1 files changed, 10 insertions, 0 deletions
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.
<<org-babel-settings>>)
#+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