Extract :ui posframe packages into other modules
This commit is contained in:
parent
8d936f2d0b
commit
317b556bde
10 changed files with 77 additions and 84 deletions
16
modules/completion/ivy/autoload/posframe.el
Normal file
16
modules/completion/ivy/autoload/posframe.el
Normal 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)))))
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue