Give popups a small margin
To make up for lack of fringe.
This commit is contained in:
parent
9b5a219373
commit
c3988a8298
2 changed files with 12 additions and 3 deletions
|
@ -263,6 +263,14 @@ disabled."
|
|||
(let ((f (if (bound-and-true-p +popup-buffer-mode) 0)))
|
||||
(set-window-fringes nil f f fringes-outside-margins)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +popup|adjust-margins ()
|
||||
"Creates padding for the popup window determined by `+popup-margin-width',
|
||||
restoring it if `+popup-buffer-mode' is disabled."
|
||||
(when +popup-margin-width
|
||||
(let ((m (if (bound-and-true-p +popup-buffer-mode) +popup-margin-width)))
|
||||
(set-window-margins nil m m))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +popup|set-modeline-on-enable ()
|
||||
"Don't show modeline in popup windows without a `modeline' window-parameter.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue