diff options
author | Tom Willemse | 2021-02-14 18:42:10 -0800 |
---|---|---|
committer | Tom Willemse | 2021-02-14 18:42:10 -0800 |
commit | e79e21b4107272662d008ba5e06881a772f81032 (patch) | |
tree | dffa8ef29d5f897e5237412953c6c4045c6939d2 | |
parent | 48e7ba3c9ea0912c46f6f738ad0e297c93ebe652 (diff) | |
download | emacs-config-e79e21b4107272662d008ba5e06881a772f81032.tar.gz emacs-config-e79e21b4107272662d008ba5e06881a772f81032.zip |
Only try to change the company backends when company-capf is found
-rw-r--r-- | oni-company.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/oni-company.el b/oni-company.el index 53ff9fb..cfa8cf0 100644 --- a/oni-company.el +++ b/oni-company.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2020.0408.110439 +;; Version: 2021.0214.181156 ;; Package-Requires: (company oni-prescient company-posframe diminish company-prescient) ;; This program is free software; you can redistribute it and/or modify @@ -51,8 +51,9 @@ company-echo-metadata-frontend company-preview-frontend)) -(setf (car (member 'company-capf company-backends)) - '(company-capf :with company-yasnippet)) +(when (member 'company-capf company-backends) + (setf (car (member 'company-capf company-backends)) + '(company-capf :with company-yasnippet))) (add-hook 'company-completion-started-hook 'oni-company--enable-posframe) |