use-package company

This commit is contained in:
larstvei 2023-06-11 22:16:38 +02:00
parent f8a4292a6a
commit ba0e3ed58e

View File

@ -207,8 +207,7 @@
(let* ((package--builtins nil)
(packages
'(company ; Modular text completion framework
company-coq ; A collection of extensions PG's Coq mode
'(company-coq ; A collection of extensions PG's Coq mode
counsel ; Various completion functions using Ivy
counsel-projectile ; Ivy integration for Projectile
dashboard ; A startup screen extracted from Spacemacs
@ -423,7 +422,6 @@
delete-selection-mode ; Replace selected text
dirtrack-mode ; directory tracking in *shell*
editorconfig-mode ; Use editorconfig
global-company-mode ; Auto-completion everywhere
global-diff-hl-mode ; Highlight uncommitted changes
global-so-long-mode ; Mitigate performance for long lines
counsel-projectile-mode ; Manage and navigate projects
@ -642,6 +640,13 @@
#+begin_src emacs-lisp
;; Modular text completion framework
(use-package company
:bind (:map company-active-map
("C-d" . 'company-show-doc-buffer)
("C-n" . 'company-select-next)
("C-p" . 'company-select-previous))
:config
(setq company-idle-delay 0
company-echo-delay 0
company-dabbrev-downcase nil
@ -649,6 +654,7 @@
company-selection-wrap-around t
company-transformers '(company-sort-by-occurrence
company-sort-by-backend-importance))
(global-company-mode 1))
#+end_src
@ -1586,17 +1592,6 @@
#+end_src
** Bindings for [[http://company-mode.github.io/][company-mode]]
#+begin_src emacs-lisp
(define-key company-active-map (kbd "C-d") 'company-show-doc-buffer)
(define-key company-active-map (kbd "C-n") 'company-select-next)
(define-key company-active-map (kbd "C-p") 'company-select-previous)
(define-key company-active-map (kbd "<tab>") 'company-complete)
#+end_src
** Bindings for [[https://github.com/bbatsov/projectile][Projectile]]
#+begin_src emacs-lisp