Elffuss BraidHub

kikocis/company-english-helper public

默认company-mode就是开启的,所以不需要再开启一次,如果再开启一次company-english-helper-search就会被其他的company给顶替,这样company-backends第一个就不是company-english-helper-search了
Changeset663c85feb020917c870afd8adcc57f00230c601cf3a6eaa222a699ffc1ce98ec
AuthorEvanMeek <the_lty_mail@foxmail.com> · 2020-03-26 15:39 +08:00
CommitterEvanMeek <the_lty_mail@foxmail.com> · 2020-03-26 15:39 +08:00
Parents902506f12709

Browse the files at this changeset

1 file changed

modified company-english-helper.el +3 −2
@@ -216,9 +216,10 @@
216216 ;; I need remove `company-english-helper-search' with `company-yasnippet',
217217 ;; it's not enough just remove `company-english-helper-search' from `company-backends'
218218 (setq company-backends (remove '(company-english-helper-search :with company-yasnippet) company-backends))
219- (message "English helper has disable."))
220219 (setq company-english-helper-active-p nil)
221- (company-mode t)
220+ (message "English helper has disable."))
221+ (if (not company-mode)
222+ (company-mode t))
222223 (add-to-list 'company-backends 'company-english-helper-search)
223224 (setq company-english-helper-active-p t)
224225 (message "English helper has enable.")))