ui/posframe: use hook instead of :after

This commit is contained in:
Henrik Lissner 2018-04-18 18:30:17 -04:00
parent dc33c72d19
commit d0ecf97956
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -23,9 +23,8 @@
(def-package! ivy-posframe
:when (featurep! :completion ivy)
:when EMACS26+
:after ivy
:hook (ivy-mode . ivy-posframe-enable)
:preface
;; This function searches the entire `obarray' just to populate
;; `ivy-display-functions-props'. There are 15k entries in mine! This is
@ -49,8 +48,6 @@
(dolist (fn '(swiper counsel-rg counsel-ag counsel-pt counsel-grep counsel-git-grep))
(push (cons fn nil) ivy-display-functions-alist))
(ivy-posframe-enable)
(setq ivy-height 16
ivy-fixed-height-minibuffer nil
ivy-posframe-parameters `((min-width . 90)