[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/cape 6d076f2480 129/146: README: Document company--mult
From: |
ELPA Syncer |
Subject: |
[elpa] externals/cape 6d076f2480 129/146: README: Document company--multi-backend-adapter |
Date: |
Sun, 9 Jan 2022 20:57:48 -0500 (EST) |
branch: externals/cape
commit 6d076f24807eec4fbc2c5f75414887c80ec5e028
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
README: Document company--multi-backend-adapter
---
README.org | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
index 5178cdf8f5..dea6d1f661 100644
--- a/README.org
+++ b/README.org
@@ -29,7 +29,9 @@ The command ~cape-symbol~ is particularily useful for
documentation of Elisp
packages or configurations, since it completes elisp symbols anywere.
On the more experimental side, Cape has the super power to transform Company
-backends into Capfs and merge multiple Capfs into a Super-Capf!
+backends into Capfs and merge multiple Capfs into a Super-Capf! These
+transformers allow you to still take advantage of Company backends even if you
+are not using Company as frontend.
* Available Capfs
@@ -141,6 +143,21 @@ example completion backend, which can be used with both
~completion-at-point~
(setq company-backends '(emoji-backend))
#+end_src
+It is possible to merge/group multiple Company backends and use them as a
single
+Capf using the ~company--multi-backend-adapter~ function from Company. The
adapter
+transforms multiple Company backends into a single Company backend, which can
+then be used as a Capf via ~cape-company-to-capf~.
+
+#+begin_src emacs-lisp
+ (require 'company)
+ ;; Use the company-dabbrev and company-elisp backends together.
+ (setq completion-at-point-functions
+ (list
+ (cape-company-to-capf
+ (apply-partially #'company--multi-backend-adapter
+ '(company-dabbrev company-elisp)))))
+#+end_src
+
** Super-Capf - Merging multiple Capfs
/Throw multiple Capfs under the Cape and get a Super-Capf!/
@@ -157,6 +174,9 @@ and ~completion-table-in-turn~.
(list (cape-super-capf #'cape-dabbrev #'cape-dict
#'cape-keyword)))
#+end_src
+See also the aforementioned ~~company--multi-backend-adapter~~ from Company,
which
+allows you to merge multiple Company backends.
+
** Capf-Buster - Cache busting
/The Capf-Buster ensures that you always get a fresh set of candidates!/
- [elpa] externals/cape 241dde47ca 070/146: Unify cape-keyword and cape-keyword-capf, (continued)
- [elpa] externals/cape 241dde47ca 070/146: Unify cape-keyword and cape-keyword-capf, ELPA Syncer, 2022/01/09
- [elpa] externals/cape eaa408779e 072/146: cape-symbol: Implement capf, ELPA Syncer, 2022/01/09
- [elpa] externals/cape eff4f34841 084/146: Add cape-noninterruptible-capf, ELPA Syncer, 2022/01/09
- [elpa] externals/cape fd8828cff3 100/146: Make cape--company-call more robust, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 1d0d3abbd1 102/146: Use namespaced symbol, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 4aec140c08 109/146: Minor cleanup, ELPA Syncer, 2022/01/09
- [elpa] externals/cape b3e2850fcf 108/146: Add unwind-protect, ELPA Syncer, 2022/01/09
- [elpa] externals/cape e81e3cfd4e 112/146: Indent, ELPA Syncer, 2022/01/09
- [elpa] externals/cape b895c8cf28 114/146: cape-capf-case-fold: Add dont-fold, ELPA Syncer, 2022/01/09
- [elpa] externals/cape c0343a247c 123/146: cape-tex/sgml: Improve docsig, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 6d076f2480 129/146: README: Document company--multi-backend-adapter,
ELPA Syncer <=
- [elpa] externals/cape c8c0a9f9a6 134/146: Simplify, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 5319e343bb 136/146: Improve repair function, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 12b00151d1 143/146: Improve and simplify cape-dabbrev, ELPA Syncer, 2022/01/09
- [elpa] externals/cape be2014538a 144/146: cape-dabbrev: Use thing-at-point-looking-at, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 5ccece0e34 146/146: Add to GNU ELPA, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 700c9d7bc2 137/146: Remove cape-repair-misbehaving-capf, ELPA Syncer, 2022/01/09
- [elpa] externals/cape bc1c1ee9fc 140/146: Make cape-tex etc less aggressive, add cape-tex-prefix-required variable, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 8726bc7246 138/146: cape--interactive: Simplify, ELPA Syncer, 2022/01/09
- [elpa] externals/cape ac65f2acdf 048/146: Add autoloads, renamings, README, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 0a05e51d2a 053/146: Add cape-capf-with-predicate (See #9), ELPA Syncer, 2022/01/09