mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-16 11:09:29 +00:00
[emacs] Switch to company for auto-completion
This commit is contained in:
parent
35ad37432c
commit
74e7bea32b
1 changed files with 22 additions and 8 deletions
|
@ -296,17 +296,31 @@ A strongly typed, pure functional language.
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Tools
|
** Tools
|
||||||
*** Autocomplete
|
*** Autocomplete
|
||||||
|
**** Company
|
||||||
|
|
||||||
|
Install and configure Company for auto-completion.
|
||||||
|
|
||||||
#+name: autocomplete
|
#+name: autocomplete
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package auto-complete
|
(use-package company
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config (progn
|
||||||
(progn (global-auto-complete-mode t)
|
(add-hook 'prog-mode-hook 'company-mode)
|
||||||
(require 'auto-complete-config)
|
|
||||||
(ac-config-default)
|
(bind-key "C-n" #'company-select-next company-active-map)
|
||||||
(ac-set-trigger-key "TAB")
|
(bind-key "C-p" #'company-select-previous company-active-map)))
|
||||||
(ac-set-trigger-key "<tab>")))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
**** Auto-Complete
|
||||||
|
|
||||||
|
Not using this for auto-completion anymore, but several packages
|
||||||
|
require it.
|
||||||
|
|
||||||
|
#+name: autocomplete
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package auto-complete
|
||||||
|
:ensure t)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** Flycheck
|
*** Flycheck
|
||||||
#+name: packages
|
#+name: packages
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
Loading…
Reference in a new issue