[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe 1f3dbf4 026/195: Add ivy-posframe-setup an
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe 1f3dbf4 026/195: Add ivy-posframe-setup and use it. |
Date: |
Sat, 3 Oct 2020 07:11:38 -0400 (EDT) |
branch: externals/ivy-posframe
commit 1f3dbf41cda9745c4f67f333d9d305bce717f4c8
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Add ivy-posframe-setup and use it.
---
ivy-posframe.el | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index cb748af..bc47716 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -94,16 +94,6 @@
(require 'posframe)
(require 'ivy)
-(dolist (f '(ivy-posframe-display
- ivy-posframe-display-at-frame-center
- ivy-posframe-display-at-window-center
- ivy-posframe-display-at-frame-bottom-left
- ivy-posframe-display-at-window-bottom-left
- ivy-posframe-display-at-frame-bottom-window-center
- ivy-posframe-display-at-point))
- (push `(,f :cleanup ivy-posframe-cleanup)
- ivy-display-functions-props))
-
(defgroup ivy-posframe nil
"Using posframe to show ivy"
:group 'ivy
@@ -192,6 +182,19 @@ When nil, Using current frame's font as fallback."
emacs-basic-display
(not (display-graphic-p))))))
+(defun ivy-posframe-setup ()
+ "Regedit all display functions of ivy-posframe to
`ivy-display-functions-props'."
+ (interactive)
+ (mapatoms
+ #'(lambda (func)
+ (when (and (functionp func)
+ (string-match-p "^ivy-posframe-display" (symbol-name func))
+ (not (assq func ivy-display-functions-props)))
+ (push `(,func :cleanup ivy-posframe-cleanup)
+ ivy-display-functions-props)))))
+
+(ivy-posframe-setup)
+
(provide 'ivy-posframe)
;; Local Variables:
- [elpa] externals/ivy-posframe 6494b38 005/195: Add ivy-posframe-mode, (continued)
- [elpa] externals/ivy-posframe 6494b38 005/195: Add ivy-posframe-mode, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 8a54dbb 011/195: Use ivy-display-function-fallback, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 8a3ecb3 014/195: package-require ivy, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 0136107 015/195: Remove ivy-posframe-mode, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 2546238 016/195: reuse minibuffer's ivy prompt, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9db2b75 017/195: Update README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 550c322 018/195: Fix warn, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe c36250a 013/195: Update README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe cef74e6 021/195: Different command can set different ivy-posframe display function, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 5482c07 024/195: Update README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 1f3dbf4 026/195: Add ivy-posframe-setup and use it.,
Feng Shu <=
- [elpa] externals/ivy-posframe 0be1372 029/195: Remove ivy-posframe-style variable, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 387045c 032/195: Fix README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 26a7ba7 036/195: Add ivy-posframe-enable and use it, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe b9b9a45 038/195: Update, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9f6b58d 040/195: Cursor face inherits from regular cursor face, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 266d622 042/195: Set ivy-posframe-cursor as mulitcursor, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 061a125 030/195: Re-add ivy-posframe-style for compatible, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe e0247bf 035/195: split ivy-posframe-setup to ivy-posframe-init and ivy-posframe-setup, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 3784f59 054/195: ivy-posframe.el (ivy-posframe-avy): Simplify, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe ddaf875 020/195: Add Emacs version requirement to README, Feng Shu, 2020/10/03