Add prescient sorting to company-mode

This commit is contained in:
Riyyi
2021-01-06 15:28:07 +01:00
parent 9cfd7ccb4c
commit 4b299480f2
+19 -16
View File
@@ -470,22 +470,25 @@ Autocomplete packages (includes code completion and snippets).
**** Company **** Company
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package company (use-package company
:defer t :defer t
:custom :custom
(company-idle-delay 0.2) (company-idle-delay 0.2)
(company-minimum-prefix-length 2) (company-minimum-prefix-length 2)
(company-tooltip-align-annotations 't) (company-tooltip-align-annotations 't)
:hook :hook
((c-mode-common ((c-mode-common
emacs-lisp-mode emacs-lisp-mode
latex-mode latex-mode
org-mode org-mode
php-mode php-mode
shell-mode shell-mode
shell-script-mode) shell-script-mode)
. company-mode) . company-mode))
)
(use-package company-prescient
:after company
:config (company-prescient-mode 1))
#+END_SRC #+END_SRC
**** Flycheck **** Flycheck