diff options
| author | Narendra Joshi <narendraj9@gmail.com> | 2021-06-28 22:16:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-28 22:16:15 +0200 |
| commit | fbf969e3ae0ee96c37ac27550d7869d5d9de1c61 (patch) | |
| tree | c728b702c765132bed94a4716477cf704adc5f9f /README.org | |
| parent | 2646dad28c0819fbe9ee521d39efb9ae40e03982 (diff) | |
Add note about custom styles for `company-capf'
Diffstat (limited to 'README.org')
| -rw-r--r-- | README.org | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |
