branch: externals/boxy
commit 9f1fa4a533376709717b3afa9ed8b3649303efee
Author: Amy Grinn <grinn....@gmail.com>
Commit: Amy Grinn <grinn....@gmail.com>

    Added variable boxy-tooltip-show-function
---
 boxy.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/boxy.el b/boxy.el
index 7d0cdd206d..04c908990e 100644
--- a/boxy.el
+++ b/boxy.el
@@ -159,6 +159,11 @@
   "Maximum width of all tooltips."
   :type 'number)
 
+;;;; Variables
+
+(defvar boxy-tooltip-show-function #'boxy--tooltip-show
+  "A function which takes a multi-line string and displays it immediately.")
+
 ;;;; Faces
 
 (defface boxy-default nil
@@ -1607,7 +1612,7 @@ characters if possible."
                       (current-buffer))
                   (eq (marker-position marker)
                       (point)))
-             (boxy--tooltip-show content)))))))
+             (funcall boxy-tooltip-show-function content)))))))
 
 (defun boxy--tooltip-show (content)
   "Show tooltip with CONTENT at point immediately."

Reply via email to