branch: master commit 3b5415a12e453b8433209c8afd51b47ddbeba448 Author: Nikita Leshenko <nik...@leshenko.net> Commit: Nikita Leshenko <nik...@leshenko.net>
company-tng: default config: Disable company-require-match Requiring a match doesn't work with company-tng because the expected behavior is to be able to type any key during completion and it will be inserted into the buffer. The default value for company-require-match is to require match on explicit action, so we can reproduce as following: 1. Open *scratch* 2. Type "(de" 3. M-x company-complete 4. RET RET RET... The RET won't register because it's not part of the completion but this is not how company-tng should work. The RETs should be inserted into the buffer. --- company-tng.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/company-tng.el b/company-tng.el index fd5646f..46592da 100644 --- a/company-tng.el +++ b/company-tng.el @@ -60,6 +60,9 @@ ;; candidates. You also need to decide which keys to unbind, depending ;; on whether you want them to do the Company action or the default ;; Emacs action (for example C-s or C-w). +;; +;; We recommend to disable `company-require-match' to allow free typing at any +;; point. ;;; Code: @@ -104,6 +107,7 @@ confirm the selection and finish the completion." ;;;###autoload (defun company-tng-configure-default () "Applies the default configuration to enable company-tng." + (setq company-require-match nil) (setq company-frontends '(company-tng-frontend company-pseudo-tooltip-frontend company-echo-metadata-frontend))