summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-08-12 23:14:13 +0200
committerBastien Guerry <bzg@altern.org>2012-08-12 23:14:13 +0200
commit7532ace0498b788b35a608f4043a0454c6d487fa (patch)
tree5e049da8fdacde689e914b3f33cad66f767d55ae
parent16d7b71762ad1121ccf5ad5f5638c609c19a3f8c (diff)
downloadorg-mode-7532ace0498b788b35a608f4043a0454c6d487fa.tar.gz
org.el: New command `org-redisplay-inline-images'
* org.el (org-redisplay-inline-images): New command. (org-mode-map): Bind it to C-c C-x C-M-v. Thanks to Petro for suggesting this.
-rw-r--r--lisp/org.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 631d082..63cf234 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17730,6 +17730,14 @@ INCLUDE-LINKED is passed to `org-display-inline-images'."
(length org-inline-image-overlays))
(message "No images to display inline"))))
+(defun org-redisplay-inline-images ()
+ "Refresh the display of inline images."
+ (interactive)
+ (if (not org-inline-image-overlays)
+ (org-toggle-inline-images)
+ (org-toggle-inline-images)
+ (org-toggle-inline-images)))
+
(defun org-display-inline-images (&optional include-linked refresh beg end)
"Display inline images.
Normally only links without a description part are inlined, because this
@@ -18019,6 +18027,7 @@ BEG and END default to the buffer boundaries."
(org-defkey org-mode-map "\C-c\C-x\C-u" 'org-dblock-update)
(org-defkey org-mode-map "\C-c\C-x\C-l" 'org-preview-latex-fragment)
(org-defkey org-mode-map "\C-c\C-x\C-v" 'org-toggle-inline-images)
+(org-defkey org-mode-map "\C-c\C-x\C-\M-v" 'org-redisplay-inline-images)
(org-defkey org-mode-map "\C-c\C-x\\" 'org-toggle-pretty-entities)
(org-defkey org-mode-map "\C-c\C-x\C-b" 'org-toggle-checkbox)
(org-defkey org-mode-map "\C-c\C-xp" 'org-set-property)