summaryrefslogtreecommitdiff
path: root/elisp/geiser-image.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2022-08-12 15:07:18 +0200
committerJonas Bernoulli <jonas@bernoul.li>2024-07-06 17:37:23 +0200
commitf74612686b468069849ab36d1c49229312f3434e (patch)
treed2cb53b6a412a06e02175c8054b898a54250c7be /elisp/geiser-image.el
parent67f727855895050aca3bcf37066e804dc8f307de (diff)
downloadgeiser-f74612686b468069849ab36d1c49229312f3434e.tar.gz
geiser-f74612686b468069849ab36d1c49229312f3434e.tar.bz2
Buttons live in their own namespace
`geiser-doc--xbutton' will be tackled in the next commit.
Diffstat (limited to 'elisp/geiser-image.el')
-rw-r--r--elisp/geiser-image.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/elisp/geiser-image.el b/elisp/geiser-image.el
index fc2c49d..8476954 100644
--- a/elisp/geiser-image.el
+++ b/elisp/geiser-image.el
@@ -76,13 +76,13 @@ images in `geiser-image--cache-dir'."
(let ((file (button-get button 'geiser-image-file)))
(when (file-exists-p file) (geiser-image--display file))))
-(define-button-type 'geiser-image--button
+(define-button-type 'geiser-image
'action 'geiser-image--button-action
'follow-link t)
(defun geiser-image--insert-button (file)
(insert-text-button "[image]"
- :type 'geiser-image--button
+ :type 'geiser-image
'face 'geiser-font-lock-image-button
'geiser-image-file file
'help-echo "Click to display image"))