From 1f62c965eb776ba7a16f4ca173e61385b9f2cb11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Alvari=C3=B1o?= Date: Sun, 20 Mar 2022 00:12:00 +0100 Subject: [PATCH] Add company for completion --- myconfig.org | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/myconfig.org b/myconfig.org index 7e2fc00..6b47223 100644 --- a/myconfig.org +++ b/myconfig.org @@ -482,9 +482,9 @@ Quick navigation to words ** iedit [[https://github.com/victorhge/iedit][iedit]]: Interactive edition of all ocurrences of X #+begin_src emacs-lisp - (use-package iedit - :bind - ("C-ç" . iedit-mode)) + (use-package iedit + :bind + ("C-ç" . iedit-mode)) #+end_src * Project management with projectile @@ -557,7 +557,6 @@ Quick navigation to words Place your own snippets on =~/.cache/emacs/etc/yasnippet/snippets= #+begin_src emacs-lisp (use-package yasnippet - :config :init (yas-global-mode 1) ) @@ -567,6 +566,25 @@ Quick navigation to words ) #+end_src +* company + Autocompletion with [[https://company-mode.github.io/][company]] + #+begin_src emacs-lisp + (use-package company + :init + (global-company-mode t) + + :config + ;; (setq company-idle-delay 0) + (setq company-idle-delay + (lambda () (if (company-in-string-or-comment) nil 0.3))) + (setq company-minimum-prefix-length 3) + ;; (add-to-list 'company-backends 'company-yasnippet t) + + :bind + ("C-" . company-complete-common-or-cycle) + ) + #+end_src + * next #+begin_src emacs-lisp #+end_src