From 12b130763103f0a0d8cd8e900593a18c4a23f02a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 16 Jul 2020 14:10:25 +0200 Subject: Emacs: fix company configuration (broken by tide load side-effects) https://github.com/ananthakumaran/tide/pull/384 --- user/emacs/init.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/user/emacs/init.el b/user/emacs/init.el index 5261d625..6c701bf3 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -915,7 +915,12 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (use-package tide :after (typescript-mode company flycheck) - :ghook ('typescript-mode-hook #'tide-setup)) + :ghook ('typescript-mode-hook #'tide-setup) + :config (progn + ;; loading this package has the annoying effect of breaking my company configuration + ;; upstream fix: https://github.com/ananthakumaran/tide/pull/384 + (when (eq (car company-backends) 'company-tide) + (setq company-backends (remq 'company-tide company-backends))))) ;;;; Reformat on save -- cgit 1.4.1