branch: externals/ivy-posframe
commit 38aff80113d62b588acbb66d9f7f22ce3c54ec03
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>

    Add ivy-posframe-demo
---
 ivy-posframe.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ivy-posframe.el b/ivy-posframe.el
index 9b5b1bd..13953b3 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -442,6 +442,15 @@ selection, non-nil otherwise."
   (advice-add 'ivy--minibuffer-setup :around #'ivy-posframe--minibuffer-setup)
   (message "ivy-posframe is enabled, disabling it need to reboot emacs."))
 
+;;;###autoload
+(defun ivy-posframe-demo ()
+  "Enable a demo config of ivy-posframe.
+This function is used to test ivy-posframe."
+  (interactive)
+  (push '(t . ivy-posframe-display-at-frame-center)
+        ivy-display-functions-alist)
+  (ivy-posframe-enable))
+
 (provide 'ivy-posframe)
 
 ;; Local Variables:

Reply via email to