aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-12-13 07:09:59 -0800
committerGravatar Tom Willemse2022-12-13 07:09:59 -0800
commit244c2797b8afde4bc4885bcd047f4ecffc9dde1c (patch)
tree541f0328c1efc409afc45061745f1c91be29652b
parent8fb6beda455d535a2982022ef6902f58d129ebd7 (diff)
downloademacs-config-244c2797b8afde4bc4885bcd047f4ecffc9dde1c.tar.gz
emacs-config-244c2797b8afde4bc4885bcd047f4ecffc9dde1c.zip
[oni-company] Use tab for either completion or indentation
-rw-r--r--oni-company.el4
1 files changed, 3 insertions, 1 deletions
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 <tom@ryuslash.org>
;; 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)