Add ui/posframe module

This commit is contained in:
Henrik Lissner 2018-03-12 12:47:26 -04:00
parent d563d133ff
commit a90d17ae38
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 76 additions and 0 deletions

View 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)))))