From b0826b9a9097cdf2ca1e48b9de9a21898d494b83 Mon Sep 17 00:00:00 2001 From: LemonBreezes Date: Wed, 29 Mar 2023 01:06:05 -0400 Subject: [PATCH] tweak(config): feature-gate company keybindings In anticipation of the Corfu module, this PR feature-gates the company-mode keybindings for non-Evil users. This is already done for Evil users. --- modules/config/default/+emacs-bindings.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/config/default/+emacs-bindings.el b/modules/config/default/+emacs-bindings.el index 8e6be2a5f..b154a0da0 100644 --- a/modules/config/default/+emacs-bindings.el +++ b/modules/config/default/+emacs-bindings.el @@ -506,8 +506,9 @@ "C-x K" #'doom/kill-this-buffer-in-all-windows ;;; company-mode - "C-;" #'+company/complete - (:after company + (:when (modulep! :completion company) + "C-;" #'+company/complete + (:after company :map company-active-map "C-o" #'company-search-kill-others "C-n" #'company-select-next @@ -528,7 +529,7 @@ :map company-search-map "C-n" #'company-search-repeat-forward "C-p" #'company-search-repeat-backward - "C-s" (cmd! (company-search-abort) (company-filter-candidates))) + "C-s" (cmd! (company-search-abort) (company-filter-candidates)))) ;;; ein notebooks (:after ein:notebook-multilang