38 lines
1.1 KiB
Org Mode
38 lines
1.1 KiB
Org Mode
![]() |
:PROPERTIES:
|
||
|
:ID: 9478bca4-eee1-4aaa-b3cf-03f3148e2009
|
||
|
:END:
|
||
|
#+title: COMPANY
|
||
|
|
||
|
[[https://company-mode.github.io/][Company]] is a text completion framework for [[id:0a87430b-6616-4f92-8ecc-22ceeebf43c6][Emacs]] . The name stands for "complete anything". It is nice.
|
||
|
|
||
|
#+begin_src elisp
|
||
|
(use-package company
|
||
|
:config
|
||
|
;; No delay in showing suggestions.
|
||
|
(setq company-idle-delay 0)
|
||
|
;; Show suggestions after entering one character.
|
||
|
(setq company-minimum-prefix-length 1)
|
||
|
;; Wrap around the when the end of suggestions is reached
|
||
|
(setq company-selection-wrap-around t)
|
||
|
|
||
|
(add-hook 'after-init-hook 'global-company-mode)
|
||
|
(global-company-mode t)
|
||
|
)
|
||
|
|
||
|
#+end_src
|
||
|
|
||
|
|
||
|
I also use [[https://github.com/sebastiencs/company-box][company-box]] a better front-end for company
|
||
|
#+begin_src elisp
|
||
|
(use-package company-box
|
||
|
:after company
|
||
|
:hook (company-mode . company-box-mode))
|
||
|
#+end_src
|
||
|
|
||
|
** References
|
||
|
+ https://www.monolune.com/articles/configuring-company-mode-in-emacs/index.html
|
||
|
+ https://company-mode.github.io/
|
||
|
+ https://company-mode.github.io/manual/Getting-Started.html
|
||
|
+ https://github.com/sebastiencs/company-box
|
||
|
|