2023-08-26 14:31:14 +02:00
|
|
|
(setq doom-theme 'doom-gruvbox)
|
|
|
|
|
|
|
|
(defun posframe-poshandler-window-top-center-offset (info)
|
|
|
|
"Posframe's position handler.
|
|
|
|
|
|
|
|
Get a position which let posframe stay onto current window's
|
|
|
|
top center. The structure of INFO can be found in docstring of
|
|
|
|
`posframe-show'."
|
|
|
|
(let* ((window-left (plist-get info :parent-window-left))
|
|
|
|
(window-top (plist-get info :parent-window-top))
|
|
|
|
(window-width (plist-get info :parent-window-width))
|
|
|
|
(posframe-width (plist-get info :posframe-width)))
|
|
|
|
(cons (+ window-left (/ (- window-width posframe-width) 2))
|
|
|
|
(+ window-top 48))))
|