aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-12-03 17:21:19 -0500
committerJesús <heckyel@hyperbola.info>2021-12-03 17:21:19 -0500
commitcb2cb918df87be770f17eca4b2b9e6109762827b (patch)
treec576d48b78cf2a4005e19a6619af295eaeb48694
parent94d28d7a2d35efaf99a2857fdd4563b42bcb975d (diff)
downloademacs-personal-cb2cb918df87be770f17eca4b2b9e6109762827b.tar.lz
emacs-personal-cb2cb918df87be770f17eca4b2b9e6109762827b.tar.xz
emacs-personal-cb2cb918df87be770f17eca4b2b9e6109762827b.zip
Autocomplete: fix company
-rw-r--r--modules/init-company.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/init-company.el b/modules/init-company.el
index 8434b80..ab0721d 100644
--- a/modules/init-company.el
+++ b/modules/init-company.el
@@ -2,14 +2,16 @@
;;; Commentary:
;; Company es un famework de Emacs para el completado de texto.
-;;; CODE:
+;;; code:
(use-package company
- :ensure t
+ :defer 5
+ :diminish
+ :commands (company-mode company-indent-or-complete-common)
:config
;; Global
(setq company-idle-delay 1
company-minimum-prefix-length 1
- company-show-numbers t
+ company-show-numbers nil
company-tooltip-limit 20)
;; Facing
@@ -21,8 +23,7 @@
(set-face-attribute 'company-scrollbar-bg nil :inherit 'company-tooltip :background "gray20")
(set-face-attribute 'company-scrollbar-fg nil :background "gray40"))
- ;; Default backends
- (setq company-backends '((company-files)))
+ (global-set-key (kbd "<tab>") 'company-indent-or-complete-common)
;; Activating globally
(global-company-mode t))