all repos — nixfiles @ 55370bc43d05929e678766ec01a2045c73efeb29

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

Emacs: fix eldoc-box initialisation
Alan Pearce alan@alanpearce.eu
Thu, 05 Nov 2020 15:27:04 +0100
commit

55370bc43d05929e678766ec01a2045c73efeb29

parent

ae7ff666c08c927f77619e96b77bb4db3fd0d549

1 files changed, 2 insertions(+), 4 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -530,10 +530,8 @@ (setq eldoc-idle-delay 0.5)             (global-eldoc-mode +1)))
 
 (use-package eldoc-box
-  :after (eldoc eglot)
-  :config (progn
-            (eldoc-box-hover-mode +1)
-            (eldoc-box-hover-at-point-mode +1)))
+  :after (eldoc lsp-mode)
+  :ghook ('lsp-managed-mode #'eldoc-box-hover-mode))
 
 (use-package ehelp
   :defer 15)