posframe
- Description
- Pop a posframe (just a frame) at point
- Latest
- posframe-1.4.4.tar (.sig), 2024-Aug-27, 150 KiB
- Maintainer
- Feng Shu <tumashu@163.com>
- Website
- https://github.com/tumashu/posframe
- Browse ELPA's repository
- CGit or Gitweb
- Badge
To install this package from Emacs, use package-install
or list-packages
.
Full description
1. What is posframe?
Posframe can pop up a frame at point, this posframe is a child-frame connected to its root window's buffer.
The main advantages are:
- It is fast enough for daily usage :-)
- It works well with CJK languages.
NOTE:
- For MacOS users, posframe needs Emacs version >= 26.0.91
GNOME users with GTK3 builds need Emacs 27 or later. See variable `posframe-gtk-resize-child-frames' which auto-detects this configuration.
More details:
2. Installation
(require 'posframe)
3. Usage
3.1. Create a posframe
3.1.1. Simple way
(when (posframe-workable-p) (posframe-show " *my-posframe-buffer*" :string "This is a test" :position (point)))
3.1.2. Advanced way
(defvar my-posframe-buffer " *my-posframe-buffer*") (with-current-buffer (get-buffer-create my-posframe-buffer) (erase-buffer) (insert "Hello world")) (when (posframe-workable-p) (posframe-show my-posframe-buffer :position (point)))
3.1.3. Arguments
C-h f posframe-show
3.2. Hide a posframe
(posframe-hide " *my-posframe-buffer*")
3.3. Hide all posframes
M-x posframe-hide-all
3.4. Delete a posframe
Delete posframe and its buffer
(posframe-delete " *my-posframe-buffer*")
Only delete the frame
(posframe-delete-frame " *my-posframe-buffer*")
3.5. Delete all posframes
M-x posframe-delete-all
Note: this command will delete all posframe buffers. You probably shouldn't use it if you are sharing a buffer between posframe and other packages.
3.6. posframe-arghandler
posframe-arghandler feature has been removed from posframe-1.1, user can use advice feature instead.
3.7. Mouse banish
Default setting will work well in most case, but for EXWM user, suggest use the below config.
(setq posframe-mouse-banish-function #'posframe-mouse-banish-simple)
Old versions
posframe-1.4.3.tar.lz | 2024-Apr-26 | 76.6 KiB |
posframe-1.4.2.tar.lz | 2024-Mar-31 | 76.4 KiB |
posframe-1.4.1.tar.lz | 2023-Mar-21 | 76.3 KiB |
posframe-1.4.0.tar.lz | 2023-Feb-22 | 76.3 KiB |
posframe-1.3.3.tar.lz | 2023-Feb-12 | 76.2 KiB |
posframe-1.3.0.tar.lz | 2022-Dec-14 | 76.1 KiB |
posframe-1.2.0.tar.lz | 2022-Nov-18 | 76.7 KiB |
posframe-1.1.8.tar.lz | 2022-Oct-09 | 76.8 KiB |
posframe-1.1.0.tar.lz | 2021-Nov-04 | 75.8 KiB |
posframe-1.0.4.tar.lz | 2021-Jun-16 | 75.5 KiB |
posframe-0.9.0.tar.lz | 2021-Mar-31 | 74.6 KiB |
posframe-0.8.8.tar.lz | 2021-Mar-11 | 74.6 KiB |
posframe-0.8.0.el.lz | 2020-Aug-18 | 10.7 KiB |
posframe-0.7.0.el.lz | 2020-Apr-05 | 9.53 KiB |
posframe-0.6.0.el.lz | 2020-Feb-05 | 9.32 KiB |
posframe-0.5.0.el.lz | 2019-Jun-09 | 8.77 KiB |
posframe-0.4.3.el.lz | 2019-Mar-13 | 8.32 KiB |
posframe-0.3.0.el.lz | 2018-Mar-09 | 6.12 KiB |
posframe-0.2.0.el.lz | 2018-Mar-08 | 6.07 KiB |
posframe-0.1.0.el.lz | 2018-Feb-27 | 5.83 KiB |