This package is a transient extension, which use posframe to show transient popups. This package is inspired by ivy-posframe. I mainly use this package for displaying magit transient popups.
(use-package
:load-path "path/to/transient-posframe.el"
:config
(transient-posframe-mode))
You can customize the appearance of the posframe, the options are derived directly from posframe.
- Font used in the transient posframe. When nil, Using current frame’s font as fallback.
- Customize this option to change the position of the transient popups. Refer posframe for more predefined positions.
- Minimum width of the posframe.
- Note that at this moment transient-posframe cannot adjust the
posframe’s size automagically, therefore, we use
transient-posframe-min-width
andtransient-posframe-min-height
to adjust the size of the posframe manually.
- Minimum height of the posframe.
- Note that at this moment transient-posframe cannot adjust the
posframe’s size automagically, therefore, we use
transient-posframe-min-width
andtransient-posframe-min-height
to adjust the size of the posframe manually.
- The border of the posframe.
- The parameters passed to posframe, refer posframe for more information.
- We set function
transient-display-buffer-action
totransient-posframe--show-buffer
. According to the document oftransient-display-buffer-action
:… The value of this option has the form (FUNCTION . ALIST), where FUNCTION is a function or a list of functions. Each such function should accept two arguments: a buffer to display and an alist of the same form as ALIST. See `display-buffer’ for details.
However, function
transient-posframe--show-buffer
does not deal with the second argumentALIST
. I have not figured out how to tackle with this yet.
Transient-posframe is licensed under the GPLv3 License.