fix company-backends issue, and add keybinding to company-files
This commit is contained in:
parent
749653e1b0
commit
d0c51da73a
2 changed files with 7 additions and 12 deletions
|
@ -124,6 +124,7 @@
|
|||
"f" 'ace-jump-char-mode ;; <<ajm-1>>
|
||||
"]" 'citre-peek
|
||||
"[" 'citre-jump-back
|
||||
"C-/" 'company-files
|
||||
;; ...
|
||||
)
|
||||
|
||||
|
|
|
@ -182,13 +182,9 @@ You need to install it manually. Continue?")
|
|||
company-sort-by-occurrence))
|
||||
|
||||
(setq company-backends '(
|
||||
(company-tabnine
|
||||
company-capf
|
||||
company-keywords
|
||||
company-dabbrev
|
||||
company-ispell
|
||||
(company-tabnine company-capf company-keywords company-dabbrev company-ispell)
|
||||
company-files)
|
||||
))
|
||||
)
|
||||
|
||||
;; add yasnippet support for all company backends.
|
||||
(defvar company-mode/enable-yas t
|
||||
|
@ -203,11 +199,9 @@ You need to install it manually. Continue?")
|
|||
;; set the backends for org-mode
|
||||
(defun my-company-backends-org-mode-hook ()
|
||||
(setq-local company-backends '(
|
||||
(company-tabnine
|
||||
company-dabbrev
|
||||
company-ispell
|
||||
(company-tabnine company-dabbrev company-ispell)
|
||||
company-files)
|
||||
)))
|
||||
))
|
||||
(add-hook 'org-mode-hook 'my-company-backends-org-mode-hook)
|
||||
|
||||
;; add `company-elisp' backend for elisp.
|
||||
|
|
Loading…
Reference in a new issue