emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-posframe 38aff80 084/195: Add ivy-posframe-demo


From: Feng Shu
Subject: [elpa] externals/ivy-posframe 38aff80 084/195: Add ivy-posframe-demo
Date: Sat, 3 Oct 2020 07:11:50 -0400 (EDT)

branch: externals/ivy-posframe
commit 38aff80113d62b588acbb66d9f7f22ce3c54ec03
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    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

[Prev in Thread] Current Thread [Next in Thread]