completion/company: revise idle completion in docs

This commit is contained in:
Henrik Lissner 2019-05-01 19:18:38 -04:00
parent dee6e4c214
commit 952a86c2e5
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -4,20 +4,20 @@
#+STARTUP: inlineimages #+STARTUP: inlineimages
* Table of Contents :TOC_3:noexport: * Table of Contents :TOC_3:noexport:
- [[Description][Description]] - [[#description][Description]]
- [[Module Flags][Module Flags]] - [[#module-flags][Module Flags]]
- [[Plugins][Plugins]] - [[#plugins][Plugins]]
- [[Prerequisites][Prerequisites]] - [[#prerequisites][Prerequisites]]
- [[Features][Features]] - [[#features][Features]]
- [[Code completion][Code completion]] - [[#code-completion][Code completion]]
- [[Vim-esque omni-completion prefix (C-x)][Vim-esque omni-completion prefix (C-x)]] - [[#vim-esque-omni-completion-prefix-c-x][Vim-esque omni-completion prefix (C-x)]]
- [[Configuration][Configuration]] - [[#configuration][Configuration]]
- [[Enable as-you-type code completion][Enable as-you-type code completion]] - [[#enable-as-you-typeidle-code-completion][Enable as-you-type/idle code completion]]
- [[Enable company backend(s) in certain modes][Enable company backend(s) in certain modes]] - [[#enable-company-backends-in-certain-modes][Enable company backend(s) in certain modes]]
- [[Troubleshooting][Troubleshooting]] - [[#troubleshooting][Troubleshooting]]
- [[Code-completion doesn't pop up automatically.][Code-completion doesn't pop up automatically.]] - [[#code-completion-doesnt-pop-up-automatically][Code-completion doesn't pop up automatically.]]
- [[X-mode doesn't have code completion support or requires extra setup.][X-mode doesn't have code completion support or requires extra setup.]] - [[#x-mode-doesnt-have-code-completion-support-or-requires-extra-setup][X-mode doesn't have code completion support or requires extra setup.]]
- [[No backends (or the incorrect ones) have been registered for X-mode.][No backends (or the incorrect ones) have been registered for X-mode.]] - [[#no-backends-or-the-incorrect-ones-have-been-registered-for-x-mode][No backends (or the incorrect ones) have been registered for X-mode.]]
* Description * Description
This module provides code completion, powered by [[https://github.com/company-mode/company-mode][company-mode]]. It is required This module provides code completion, powered by [[https://github.com/company-mode/company-mode][company-mode]]. It is required
@ -84,12 +84,13 @@ available to evil users to access specific company backends:
| =C-x s= | Complete spelling suggestions | | =C-x s= | Complete spelling suggestions |
* Configuration * Configuration
** Enable as-you-type code completion ** Enable as-you-type/idle code completion
The =+auto= module flag enables this. You may customize ~company-idle-delay~ to The =+auto= module flag enables this feature.
control how quickly the popup should appear.
The ~+company/toggle-auto-completion~ command is also available to toggle this Otherwise, ~M-x +company/toggle-auto-completion~ will toggle this interactively.
interactively.
Customize ~company-idle-delay~ to control how quickly the popup should appear.
The default is ~0.2s~.
** Enable company backend(s) in certain modes ** Enable company backend(s) in certain modes
The ~set-company-backend!~ function exists for setting ~company-backends~ The ~set-company-backend!~ function exists for setting ~company-backends~