Extract :ui posframe packages into other modules

This commit is contained in:
Henrik Lissner 2018-05-08 21:47:40 +02:00
parent 8d936f2d0b
commit 317b556bde
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
10 changed files with 77 additions and 84 deletions

View file

@ -0,0 +1,16 @@
;;; completion/ivy/autoload/posframe.el -*- lexical-binding: t; -*-
;;;###if (featurep! +childframe)
;;;###autoload
(defun +ivy-display-at-frame-center-near-bottom (str)
"TODO"
(ivy-posframe--display str #'+ivy-poshandler-frame-center-near-bottom))
;;;###autoload
(defun +ivy-poshandler-frame-center-near-bottom (info)
"TODO"
(let ((parent-frame (plist-get info :parent-frame))
(pos (posframe-poshandler-frame-center info)))
(cons (car pos)
(truncate (/ (frame-pixel-height parent-frame) 1.6)))))