[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe aae7322 119/195: use ivy-posframe-mode-map
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe aae7322 119/195: use ivy-posframe-mode-map instead of define-key |
Date: |
Sat, 3 Oct 2020 07:11:57 -0400 (EDT) |
branch: externals/ivy-posframe
commit aae7322334aafe67f409da3e5034556b50ddeaa8
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>
use ivy-posframe-mode-map instead of define-key
---
ivy-posframe.el | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index e766914..0aa6f70 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -475,12 +475,6 @@ selection, non-nil otherwise."
'((ivy--minibuffer-setup . ivy-posframe--minibuffer-setup)
(ivy--queue-exhibit . ivy-posframe--add-prompt)))
-(defvar ivy-posframe-keybind-list
- '((ivy-minibuffer-map [remap ivy-read-action] ivy-posframe-read-action)
- (ivy-minibuffer-map [remap ivy-dispatching-done]
ivy-posframe-dispatching-done)
- (ivy-minibuffer-map [remap ivy-avy] ivy-posframe-avy)
- (ivy-minibuffer-map [remap swiper-avy] ivy-posframe-swiper-avy)))
-
;;;###autoload
(define-minor-mode ivy-posframe-mode
"Display ivy via posframe."
@@ -488,9 +482,12 @@ selection, non-nil otherwise."
:global t
:lighter " ivy-pf"
:group 'ivy-posframe
+ :keymap '(([remap ivy-read-action] ivy-posframe-read-action)
+ ([remap ivy-dispatching-done] ivy-posframe-dispatching-done)
+ ([remap ivy-avy] ivy-posframe-avy)
+ ([remap swiper-avy] ivy-posframe-swiper-avy))
(let ((fncs ivy-posframe-display-function-list)
(advs ivy-posframe-advice-alist)
- (keys ivy-posframe-keybind-list)
(configures ivy-posframe-configure-alist))
(if ivy-posframe-mode
(eval
@@ -498,16 +495,14 @@ selection, non-nil otherwise."
,@(mapcan
(lambda (conf) (mapcar (lambda (elm) `(push ',elm ,(car conf)))
(cdr conf))) configures)
,@(mapcar (lambda (elm) `(push '(,elm :cleanup
ivy-posframe-cleanup) ivy-display-functions-props)) fncs)
- ,@(mapcar (lambda (elm) `(advice-add ',(car elm) :around #',(cdr
elm))) advs)
- ,@(mapcar (lambda (elm) `(define-key ,(nth 0 elm) ,(nth 1 elm)
',(nth 2 elm))) keys)))
+ ,@(mapcar (lambda (elm) `(advice-add ',(car elm) :around #',(cdr
elm))) advs)))
(eval
`(progn
,@(mapcan
(lambda (conf) (mapcar (lambda (elm) `(setq ,(car conf) (remove
',elm ,(car conf)))) (cdr conf))) configures)
,@(mapcar (lambda (elm) `(setq ivy-display-functions-alist (delete
',elm ivy-display-functions-alist))) configures)
,@(mapcar (lambda (elm) `(push '(,elm :cleanup ignore)
ivy-display-functions-props)) fncs)
- ,@(mapcar (lambda (elm) `(advice-remove ',(car elm) #',(cdr elm)))
advs)
- ,@(mapcar (lambda (elm) `(define-key ,(nth 0 elm) ,(nth 1 elm) nil))
keys))))))
+ ,@(mapcar (lambda (elm) `(advice-remove ',(car elm) #',(cdr elm)))
advs))))))
;;;###autoload
(defun ivy-posframe-demo ()
- [elpa] externals/ivy-posframe d29f788 089/195: Again fix ivy-posframe-font seems take no effect. #36, (continued)
- [elpa] externals/ivy-posframe d29f788 089/195: Again fix ivy-posframe-font seems take no effect. #36, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe fd9c072 090/195: requires ivy v0.11.0, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 0c2bf2c 095/195: Fix2 "ivy-posframe copies prompt text as kill" #41, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe d15c352 165/195: remove ivy-posframe--poframe-p-advice, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 10fd5c1 148/195: Fix `ivy-dispatching-done` is not working #45, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 1b5db75 145/195: Do not warn when ivy-display-function is not nil, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 92e09f2 153/195: Merge pull request #44 from conao3/fix-minor-mode-option, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe d57087e 116/195: add additional-display-functions custom variable, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 1a7f2f0 107/195: move ivy-posframe-display-functions to variables section, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 95c1028 177/195: ivy-display-function -> ivy--display-function, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe aae7322 119/195: use ivy-posframe-mode-map instead of define-key,
Feng Shu <=
- [elpa] externals/ivy-posframe 35d47bd 117/195: refine document, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 7dc84ee 152/195: Fix2 First line disappears with the specific condition. #47, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe d35af4f 144/195: handle ivy-display-function again, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 8902638 100/195: define ivy-posframe-adbice-alist, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 212eaa1 138/195: indent ivy-posframe-mode, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe b934152 125/195: move variables section above advice section, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9e0c6da 118/195: generate readme, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 02a357d 104/195: define ivy-posframe-mode instead of ivy-posframe-enable, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe aea9074 122/195: add ivy-posframe--read advice, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 76350e7 146/195: Update README, Feng Shu, 2020/10/03