Skip to content

Commit

Permalink
fix(eldoc-box): do not enable in terminal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Feb 27, 2024
1 parent eab6060 commit 10f660c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,12 @@ Fall back to the default `citre--project-root'."

(use-package eldoc-box
:straight t
:hook (prog-mode . eldoc-box-hover-at-point-mode)
:hook (eglot-managed-mode . eldoc-box-hover-at-point-mode))
:hook (prog-mode . +eldoc-box-hover-at-point-mode-maybe)
:hook (eglot-managed-mode . +eldoc-box-hover-at-point-mode-maybe)
:init
(defun +eldoc-box-hover-at-point-mode-maybe (&optional arg)
(when (display-graphic-p)
(eldoc-box-hover-at-point-mode arg))))

(use-package apheleia
:straight t
Expand Down

0 comments on commit 10f660c

Please sign in to comment.