emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master a870b69 24/78: Merge pull request #712 from nikital/tng-de


From: Dmitry Gutov
Subject: [elpa] master a870b69 24/78: Merge pull request #712 from nikital/tng-defaults
Date: Sun, 18 Feb 2018 07:40:16 -0500 (EST)

branch: master
commit a870b696f16a8f2285e2081d11521227eabf909c
Merge: a528433 3d9272d
Author: Dmitry Gutov <address@hidden>
Commit: GitHub <address@hidden>

    Merge pull request #712 from nikital/tng-defaults
    
    Fix default company-tng configuration
---
 company-tng.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/company-tng.el b/company-tng.el
index b43a196..fd5646f 100644
--- a/company-tng.el
+++ b/company-tng.el
@@ -88,8 +88,7 @@ confirm the selection and finish the completion."
        (move-overlay ov (- (point) prefix) (point))
        (overlay-put ov
                     (if (= prefix 0) 'after-string 'display)
-                    (and company-selection-changed selected))
-       (overlay-put ov 'display (and company-selection-changed selected))))
+                    (and company-selection-changed selected))))
     (hide
      (when company-tng--overlay
        (delete-overlay company-tng--overlay)
@@ -105,7 +104,9 @@ confirm the selection and finish the completion."
 ;;;###autoload
 (defun company-tng-configure-default ()
   "Applies the default configuration to enable company-tng."
-  (add-to-list 'company-frontends 'company-tng-frontend)
+  (setq company-frontends '(company-tng-frontend
+                            company-pseudo-tooltip-frontend
+                            company-echo-metadata-frontend))
   (let ((keymap company-active-map))
     (define-key keymap [return] nil)
     (define-key keymap (kbd "RET") nil)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]