Replies: 8 comments
-
|
could you share some code? I would like to know how you use these functions. other guys told me they reuse the functions for org mode links. in the near future, I will make some functions generic so them can be used easily. |
Beta Was this translation helpful? Give feedback.
-
|
Here is a minimal (use-package company
:vc (:url "https://github.com/company-mode/company-mode" :rev :newest)
:hook (emacs-lisp-mode . company-mode)
:custom
(setq company-idle-delay 0.3))
(add-to-list 'package-archives '("MELPA" . "https://melpa.org/packages/"))
(use-package frame-local
:ensure t)
(use-package company-box
:after frame-local
:ensure t
:vc (:url "https://github.com/sebastiencs/company-box" :rev :newest)
:hook (company-mode . company-box-mode))If you create a directory Screencast.From.2025-10-04.13-27-56.mp4 |
Beta Was this translation helpful? Give feedback.
-
|
The screencasts demonstrates a bug where the initial company box doesn't show up. It should look like this:
|
Beta Was this translation helpful? Give feedback.
-
|
but in your configuration, I don't see eldoc-mouse, where should the configuration of eldoc-mouse be? |
Beta Was this translation helpful? Give feedback.
-
|
I'm sorry my issue wasn't clear. Let me re-state it. It seems like a lot of what you are doing (displaying documentation in a frame) could be use existing code. Here, I've demonstrated how I haven't looked closely at your project so I could be wrong or you could already be doing what I'm suggesting. |
Beta Was this translation helpful? Give feedback.
-
|
@hexmode so this isn't an issue. We may move it to Discussion? In my implementation, I don't write code to retrieve document, I call Emacs function eldoc-print-current-symbol-info to tell Emacs to retrieve doc, I don't even deal with when to display doc, emacs does, what I do here is telling emacs where and how to display document (show the doc in posframe). You can see that I just wrote few code to support the function. Correct myself, company-boc does support displaying the doc from lsp server, I do not fully understand how it get the doc, it seems that company-box get doc from company. Anyway, eldoc-mouse trigger emacs build-in eldoc to get doc from lsp server, eldoc decide when to output doc, eldoc-mouse tells eldoc how and where to display doc. The approaches used by company-box and eldoc-mouse are different, and the situations are different. And I don't write much code to retrieve doc, display doc in eldoc-mouse, instead, I reused emacs's build-in eldoc and elpa package posframe. |
Beta Was this translation helpful? Give feedback.
-
|
A discussion is probably appropriate. I haven't used them much and mostly use issues. Thanks for letting me know how you're doing this. Maybe I should ask company-box why they don't use posframe. 😉 |
Beta Was this translation helpful? Give feedback.
-
|
@hexmode By the way, I discovered another package called |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
It seems like the retrieval and display code from this could be re-used.
Screencast.From.2025-10-03.16-31-50.mp4
Beta Was this translation helpful? Give feedback.
All reactions