tumashu / company-posframe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Note: this file is auto converted from company-posframe.el by el2org, please do not edit it by hand!!!

目录

  1. company-posframe README
    1. What is company-posframe
    2. How to use company-posframe
    3. Tips
      1. How to reduce flicker when scroll up and down?
      2. Work better with desktop.el
    4. Note

company-posframe README

What is company-posframe

company-posframe is a company extension, which let company use child frame as its candidate menu.

It has the following feature:

  1. It is fast enough for daily use.
  2. It works well with CJK language.

img

How to use company-posframe

(require 'company-posframe)
(company-posframe-mode 1)

Tips

How to reduce flicker when scroll up and down?

In windows or MacOS system, company candidates menu may flicker when scroll up and down, the reason is that the size of posframe changing rapid, user can set the minimum width of menu to limit flicker, for example:

(setq company-tooltip-minimum-width 40)

Work better with desktop.el

The below code let desktop.el not record the company-posframe-mode

(require 'desktop) ;this line is needed.
(push '(company-posframe-mode . nil)
      desktop-minor-mode-table)

Note

company-posframe.el is derived from Clément Pit-Claudel's company-tooltip.el, which can be found at:

company-mode/company-mode#745 (comment)

Some quickhelp functions is come from:

company-quickhelp

About


Languages

Language:Emacs Lisp 100.0%