all repos — nixfiles @ 12b130763103f0a0d8cd8e900593a18c4a23f02a

System and user configuration, managed by nix and home-manager

Emacs: fix company configuration (broken by tide load side-effects) https://github.com/ananthakumaran/tide/pull/384

Alan Pearce
commit

12b130763103f0a0d8cd8e900593a18c4a23f02a

parent

1a8a9b13238ecec0decdbf1f2255ab15681711c0

1 file changed, 6 insertions(+), 1 deletion(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -915,7 +915,12 @@ :ghook ('(js2-mode-hook typescript-mode-hook) #'add-node-modules-path))
(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