commit 91f5555aa8aca15a9755414c845bb625bd7cd383
parent 08d6d255df778823b7b998b5e1b7eb685e67c486
Author: Vincent Demeester <vincent@sbr.pm>
Date: Tue, 7 Apr 2020 18:54:00 +0200
config-completion.el: add more noninteractive
:unless :)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/tools/emacs/config/config-completion.el b/tools/emacs/config/config-completion.el
@@ -4,6 +4,7 @@
;;; Code
;; UseMinibuffer
(use-package minibuffer
+ :unless noninteractive
:config
(setq completion-cycle-threshold 3)
(setq completion-flex-nospace nil)
@@ -96,6 +97,7 @@ instead."
;; UseIComplete
(use-package icomplete
:demand
+ :unless noninteractive
:after minibuffer ; Read that section as well
:config
(setq icomplete-delay-completions-threshold 0)
@@ -201,6 +203,7 @@ Otherwise, use `projectile-switch-to-project'."
;; UseCompany
(use-package company
+ :unless noninteractive
:hook ((prog-mode . company-mode))
:commands (global-company-mode company-mode company-indent-or-complete-common)
:bind (("M-/" . hippie-expand)
@@ -236,6 +239,7 @@ Otherwise, use `projectile-switch-to-project'."
;; Same for clang, cmake or xcode, elisp
(use-package company-emoji
+ :unless noninteractive
:hook ((markdown-mode . my-company-emoji))
:config
(defun my-company-emoji ()