Add ui/posframe module
This commit is contained in:
parent
d563d133ff
commit
a90d17ae38
4 changed files with 76 additions and 0 deletions
13
modules/ui/posframe/autoload.el
Normal file
13
modules/ui/posframe/autoload.el
Normal file
|
@ -0,0 +1,13 @@
|
|||
;;; ui/posframe/autoloads.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +posframe-ivy-display-at-frame-center-near-bottom (str)
|
||||
"TODO"
|
||||
(ivy-posframe--display str #'+posframe-poshandler-frame-center-near-bottom))
|
||||
|
||||
;;;###autoload
|
||||
(defun +posframe-poshandler-frame-center-near-bottom (info)
|
||||
"TODO"
|
||||
(let ((pos (posframe-poshandler-frame-center info)))
|
||||
(cons (car pos)
|
||||
(truncate (* (cdr pos) 1.60)))))
|
Loading…
Add table
Add a link
Reference in a new issue