107

GitHub - tumashu/posframe: Pop a posframe (just a child-frame) at point

 5 years ago
source link: https://github.com/tumashu/posframe
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

目录

  1. Posframe README
    1. What is posframe
    2. Installation
    3. Usage
      1. Create a posframe
      2. Hide a posframe
      3. Hide all posframes
      4. Delete a posframe
      5. Delete all posframes

Posframe README

What is posframe

Posframe can pop a posframe at point, this posframe is a child-frame with its root window's buffer.

The main advantages are:

  1. It is fast enough for daily usage :-)
  2. It works well with CJK language.

NOTE: For MacOS users, posframe need Emacs (version >= 26.0.91)

img

Installation

(require 'posframe)

Usage

Create a posframe

(posframe-show " *my-posframe-buffer*"
               :string "This is a test"
               :position (point))

Arguments documents:

C-h f posframe-show

Hide a posframe

(posframe-hide " *my-posframe-buffer*")

Hide all posframes

M-x posframe-hide-all

Delete a posframe

  1. Delete posframe and its buffer

    (posframe-delete " *my-posframe-buffer*")
    
  2. Only delete posframe's frame

    (posframe-delete-frame " *my-posframe-buffer*")
    

Delete all posframes

M-x posframe-delete-all

Note: this command will delete all posframe buffers, suggest not run this command if you are sharing a buffer between posframe and other packages.

Converted from posframe.el by el2org.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK