branch: externals/ivy-posframe
commit 229caaee32d05b04f44dba498a3e973e82dc5dc7
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>
update
---
ivy-posframe.el | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index ef253ba..ac28f8c 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -34,6 +34,10 @@
(require 'cl-lib)
(require 'posframe)
+(push '(ivy-posframe-display
+ :cleanup ivy-posframe-cleanup)
+ ivy-display-function-props)
+
(defgroup ivy-posframe nil
"Using posframe to show ivy"
:group 'ivy
@@ -72,17 +76,9 @@ Using current frame's font if it it nil."
;;;###autoload
(defun ivy-posframe-enable ()
(interactive)
- (require 'ivy)
(setq ivy-display-function #'ivy-posframe-display)
- (push '(t . ivy-posframe-display)
- ivy-display-functions-alist)
- (push '(ivy-posframe-display
- :cleanup ivy-posframe-cleanup)
- ivy-display-function-props)
(message "Ivy-posframe is enabled, disable it need restart emacs."))
-
-
(provide 'ivy-posframe)
;; Local Variables: