mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
lang/org: call push-button on buttons in org-mode
This commit is contained in:
@ -160,6 +160,8 @@ If on a:
|
|||||||
- link: follow it
|
- link: follow it
|
||||||
- otherwise, refresh all inline images in current tree."
|
- otherwise, refresh all inline images in current tree."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
|
(if (button-at (point))
|
||||||
|
(call-interactively #'push-button)
|
||||||
(let* ((context (org-element-context))
|
(let* ((context (org-element-context))
|
||||||
(type (org-element-type context)))
|
(type (org-element-type context)))
|
||||||
;; skip over unimportant contexts
|
;; skip over unimportant contexts
|
||||||
@ -268,7 +270,7 @@ If on a:
|
|||||||
(call-interactively #'org-open-at-point)
|
(call-interactively #'org-open-at-point)
|
||||||
(+org--toggle-inline-images-in-subtree
|
(+org--toggle-inline-images-in-subtree
|
||||||
(org-element-property :begin context)
|
(org-element-property :begin context)
|
||||||
(org-element-property :end context)))))))
|
(org-element-property :end context))))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +org/shift-return (&optional arg)
|
(defun +org/shift-return (&optional arg)
|
||||||
|
Reference in New Issue
Block a user