summaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
authorNarendra Joshi <narendraj9@gmail.com>2021-06-28 22:16:15 +0200
committerGitHub <noreply@github.com>2021-06-28 22:16:15 +0200
commitfbf969e3ae0ee96c37ac27550d7869d5d9de1c61 (patch)
treec728b702c765132bed94a4716477cf704adc5f9f /README.org
parent2646dad28c0819fbe9ee521d39efb9ae40e03982 (diff)
Add note about custom styles for `company-capf'
Diffstat (limited to 'README.org')
-rw-r--r--README.org13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.org b/README.org
index a6dc214..d27ffc6 100644
--- a/README.org
+++ b/README.org
@@ -387,6 +387,19 @@ But there are a couple of points of discomfort:
#+end_src
(Aren't dynamically scoped variables and the advice system nifty?)
+
+ If you would like to use different =completion-styles= with =company-capf= instead, you
+ can add this to your config:
+
+ #+begin_src emacs-lisp
+ ;; https://www.reddit.com/r/emacs/comments/nichkl/how_to_use_different_completion_styles_in_the/
+ (advice-add 'company-capf
+ :around
+ (lambda (capf-fn &rest args)
+ (let ((completion-styles '(basic partial-completion)))
+ (apply capf-fn args))))
+ #+end_src
+
* Related packages