Update company configuration

* Add web mode completion
* Add separate yasnippet key bindings
* Make the delay smaller
* Add ansible completion
This commit is contained in:
Maciej 2018-09-11 22:22:17 +03:00
parent 9c77e9bd25
commit bb626734cb
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
2 changed files with 10 additions and 7 deletions

View file

@ -3,7 +3,7 @@
;; Company configuration ;; Company configuration
(setq-default company-minimum-prefix-length 2 ; minimum prefix character number for auto complete. (setq-default company-minimum-prefix-length 2 ; minimum prefix character number for auto complete.
company-idle-delay 0.3 company-idle-delay 0.1
company-echo-delay 0 company-echo-delay 0
;; company-show-numbers t ;; company-show-numbers t
company-tooltip-align-annotations t ; align annotations to the right tooltip border. company-tooltip-align-annotations t ; align annotations to the right tooltip border.
@ -29,9 +29,14 @@
company-elisp ; Emacs Lisp company-elisp ; Emacs Lisp
company-clang company-cmake ;; C company-clang company-cmake ;; C
company-robe ;; Ruby company-robe ;; Ruby
company-ansible ;; Ansible
alchemist-company ;; Elixir alchemist-company ;; Elixir
company-racer ;; Rust company-racer ;; Rust
company-dabbrev-code company-dabbrev company-abbrev ;; abbrev company-web-html ;; HTML
(company-dabbrev-code company-dabbrev company-abbrev) ;; abbrev
company-files ; files & directory company-files ; files & directory
company-ispell ; Ispell
)) ))
;;; Yasnippet configuration
(define-key prog-mode-map (kbd "C-c y") 'company-yasnippet)
(define-key prog-mode-map (kbd "<f13>") 'company-yasnippet)

View file

@ -20,10 +20,7 @@
rainbow-mode ;; Make color symbols like #FFF colorfull rainbow-mode ;; Make color symbols like #FFF colorfull
magit ;; Git interface for Emacs magit ;; Git interface for Emacs
diff-hl ;; Highlight diff (also useful for git)
column-enforce-mode ;; Enforce column length of X column-enforce-mode ;; Enforce column length of X
window-purpose ;; Make sure that windows are of grouped by window-purpose ;; Make sure that windows are of grouped by
;; purpose. ;; purpose.
@ -68,6 +65,7 @@
;; Web ;; Web
web-mode web-mode
company-web
;; Infrastructure files ;; Infrastructure files
dockerfile-mode dockerfile-mode
@ -112,7 +110,7 @@
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(package-selected-packages '(package-selected-packages
(quote (quote
(visual-regexp enh-ruby-mode counsel-projectile counsel ivy flycheck-rust flycheck racer rust-mode hydra markdown-mode solarized-theme company-ansible alchemist window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode ruby-end web-mode rvm dash-at-point robe base16-theme exec-path-from-shell)))) (company-web visual-regexp enh-ruby-mode counsel-projectile counsel ivy flycheck-rust flycheck racer rust-mode hydra markdown-mode solarized-theme company-ansible alchemist window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode ruby-end web-mode rvm dash-at-point robe base16-theme exec-path-from-shell))))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.