company
- Description
- Modular text completion framework
- Latest
- company-0.10.2.tar (.sig), 2024-Mar-31, 2.59 MiB
- Maintainer
- Dmitry Gutov <dmitry@gutov.dev>
- Atom feed
- company.xml
- Website
- http://company-mode.github.io/
- Browse ELPA's repository
- CGit or Gitweb
- Badge
- Manual
- company
To install this package from Emacs, use package-install
or list-packages
.
Full description
Company is a modular completion framework. Modules for retrieving completion candidates are called backends, modules for displaying them are frontends. Company comes with many backends, e.g. `company-etags'. These are distributed in separate files and can be used individually. Enable `company-mode' in all buffers with M-x global-company-mode. For further information look at the documentation for `company-mode' (C-h f company-mode RET). If you want to start a specific backend, call it interactively or use `company-begin-backend'. For example: M-x company-abbrev will prompt for and insert an abbrev. To write your own backend, look at the documentation for `company-backends'. Here is a simple example completing "foo": (defun company-my-backend (command &optional arg &rest ignored) (interactive (list 'interactive)) (pcase command (`interactive (company-begin-backend 'company-my-backend)) (`prefix (company-grab-symbol)) (`candidates (list "foobar" "foobaz" "foobarbaz")) (`meta (format "This value is named %s" arg)))) Sometimes it is a good idea to mix several backends together, for example to enrich gtags with dabbrev-code results (to emulate local variables). To do this, add a list with both backends as an element in `company-backends'.
Old versions
company-0.10.1.tar.lz | 2023-Oct-06 | 2.03 MiB |
company-0.10.0.tar.lz | 2023-Oct-04 | 2.03 MiB |
company-0.9.13.tar.lz | 2020-Jul-26 | 66.1 KiB |
company-0.9.12.tar.lz | 2020-Feb-07 | 65.3 KiB |
company-0.9.9.tar.lz | 2018-Dec-13 | 72.6 KiB |
company-0.9.8.tar.lz | 2018-Dec-09 | 72.5 KiB |
company-0.9.7.tar.lz | 2018-Nov-06 | 72.4 KiB |
company-0.9.6.tar.lz | 2018-Feb-23 | 70.2 KiB |
company-0.9.5.tar.lz | 2018-Feb-18 | 70.0 KiB |
company-0.9.4.tar.lz | 2017-Jul-15 | 67.3 KiB |
company-0.9.3.tar.lz | 2017-Mar-29 | 58.6 KiB |
company-0.9.2.tar.lz | 2016-Nov-14 | 65.6 KiB |
company-0.9.1.tar.lz | 2016-Nov-12 | 65.6 KiB |
company-0.9.0.tar.lz | 2016-Jun-23 | 64.4 KiB |
company-0.8.12.tar.lz | 2015-Mar-05 | 59.9 KiB |
company-0.8.0.tar.lz | 2014-Apr-20 | 52.0 KiB |
company-0.7.3.tar.lz | 2014-Mar-25 | 49.8 KiB |
company-0.6.14.tar.lz | 2014-Jan-26 | 45.6 KiB |
company-0.6.tar.lz | 2013-Mar-20 | 34.5 KiB |
company-0.5.tar.lz | 2012-Nov-29 | 33.0 KiB |
News
History of user-visible changes
2023-10-08 (0.10.2)
- More
company-auto-update-doc
-related fixes. - Better handling of
C-g
performed inside adoc-buffer
handler (#1408).
2023-10-06 (0.10.1)
- Fix upgrading from 0.9.13 when the package is already loaded (#1406).
2023-10-04 (0.10.0)
company-echo-show
(and related featuers, most importantly,company-echo-metadata-frontend
) now should stop interfering with the echo area and ElDoc when the current backend returns nometa
.- New user option
company-tooltip-annotation-padding
(#1376). - When a snippet name is typed in full, completion does not abort now (only
affects completions which have
snippet
kind), (#205). company-show-doc-buffer
now can accept a prefix argument to toggle a new variablecompany-auto-update-doc
. When this variable is non-nil, it keeps the documentation buffer up-to-date whenever the selection changes (#1331).company-auto-commit
andcompany-auto-commit-chars
have been renamed tocompany-insertion-on-trigger
andcompany-insertion-triggers
respectively (#1270).- New command
company-complete-common-or-show-delayed-tooltip
(#1214). - Faces
company-scrollbar-fg
andcompany-scrollbar-bg
have been renamed tocompany-tooltip-scrollbar-thumb
andcompany-tooltip-scrollbar-track
respectively. - Better compatibility with
visual-line-mode
(#1257). - Better compatibility with
org-indent-mode
(#1252). - New backend command,
deprecated
. It returns whether the completion item is deprecated or not. company-tooltip-common
highlightings with non-prefix and prefix matching backends are more compatible: if the non-prefix matching backend's completions all have a common part, and so the current prefix can be expanded withcompany-complete-common
, that part is now also highlighted with that face (#519).company-yasnippet
respects thecondition
directive in snippets (#1179).- New user option
company-icon-margin
. company-show-numbers
has been renamed tocompany-show-quick-access
(#1115). New user optionscompany-quick-access-keys
andcompany-quick-access-modifier
. New commandcompany-complete-quick-access
.company-show-numbers-function
has been deprecated and its default value changed tonil
. Usecompany-quick-access-hint-function
instead.company--show-numbers
has been deprecated.company-complete-number
has been renamed tocompany-complete-tooltip-row
(#1118).- New faces
company-tooltip-quick-access
andcompany-tooltip-quick-access-selection
(#303). - Default colors for dark themes have been changed (#949).
- Default key bindings have been changed, moving
company-select-next
andcompany-select-previous
fromM-n
andM-p
toC-n
andC-p
(#1098). The bound commands are also changed:company-select-next-or-abort
andcompany-select-previous-or-abort
, to match the<up>
and<down>
bindings. The previous bindings still work, but show a warning and will be ... ...