You can install pip-frame.el from [[https://melpa.org/#/pip-frame][MELPA]]. If you use [[https://github.com/radian-software/straight.el][straight.el]] and
prefer using source repos directly, you can install pip-frame.el as
follows:
#+begin_src elisp
(straight-use-package
'(pip-frame:typegit
:repo"https://git.zamazal.org/pdm/pip-frame"
:local-repo"pip-frame"))
#+end_src
For manual installation, simply put [[./pip-frame.el][pip-frame.el]] file to your
=site-lisp= directory and add the following to your Emacs configuration:
The PIP frame is created using =M-x pip-frame-add-buffer= command. You
can use the command repeatedly to add more buffers to the PIP frame.
A buffer can be removed from the PIP frame using
=M-x pip-frame-remove-buffer= command. If the last buffer is removed
from the PIP frame, the frame is deleted. The frame can also be
deleted any time using =M-x pip-frame-delete-frame=.
If the frame obscures anything important, you can move it elsewhere
with =M-x pip-frame-move=.
There are no key bindings. Feel free to add them to your
configuration if needed. But these commands are not very frequent and
tools such as [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Icomplete.html][Icomplete mode]] or [[https://github.com/nonsequitur/smex][smex]] are likely to serve better than
tons of key shortcuts.
** Customization
Use =M-x customize-group RET pip-frame RET= to customize pip-frame.el.
Some customization examples:
- To place the PIP frame to right top rather than to right bottom:
#+begin_src elisp
(setqpip-frame-parameters'((left.0.9)(top.0.1)))
#+end_src
- To better distinguish the PIP frame from the rest of the screen (the
frame is intentionally kept out of EXWM hands and no window manager
borders are displayed), you can show it in inverse colors: