branch: externals/company
commit 4d40d1b70af7edefaa196e3879603f388b8af2d4
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>

    Bind C-M-i to company-complete-common in company-active-map
    
    Makes it easier to rebind TAB to company-complete-selection if one prefers 
so
    while still having access to the above command.
---
 NEWS.md    | 1 +
 company.el | 1 +
 2 files changed, 2 insertions(+)

diff --git a/NEWS.md b/NEWS.md
index a6b0d5df6b..cd93895569 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -2,6 +2,7 @@
 
 # Next
 
+* `C-M-i` is bound to `company-complete-common` when completion is active.
 * New built-in frontend using "real graphical" widget for the popup
   ([#1525](https://github.com/company-mode/company-mode/pull/1525)).
   This also adds a hard dependency on the package `posframe`.
diff --git a/company.el b/company.el
index 4f76945173..19afa2fb2f 100644
--- a/company.el
+++ b/company.el
@@ -916,6 +916,7 @@ asynchronous call into synchronous.")
     (define-key keymap [tab] 'company-complete-common-or-cycle)
     (define-key keymap (kbd "TAB") 'company-complete-common-or-cycle)
     (define-key keymap [backtab] 'company-cycle-backward)
+    (define-key keymap (kbd "C-M-i") 'company-complete-common)
     (define-key keymap (kbd "<f1>") 'company-show-doc-buffer)
     (define-key keymap (kbd "C-h") 'company-show-doc-buffer)
     (define-key keymap "\C-w" 'company-show-location)

Reply via email to