From 244c2797b8afde4bc4885bcd047f4ecffc9dde1c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 13 Dec 2022 07:09:59 -0800 Subject: [oni-company] Use tab for either completion or indentation --- oni-company.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'oni-company.el') diff --git a/oni-company.el b/oni-company.el index d6105da..547c8b8 100644 --- a/oni-company.el +++ b/oni-company.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2021.0727.205633 +;; Version: 2022.1211.200707 ;; Package-Requires: (company oni-prescient company-posframe diminish company-prescient) ;; This program is free software; you can redistribute it and/or modify @@ -55,6 +55,8 @@ (setf (car (member 'company-capf company-backends)) '(company-capf :with company-yasnippet))) +(define-key company-mode-map (kbd "TAB") #'company-indent-or-complete-common) + (add-hook 'company-completion-started-hook 'oni-company--enable-posframe) (company-prescient-mode) -- cgit v1.2.3-54-g00ecf