branch: elpa/eldoc-mouse
commit 8cb5ebbc3b1b098f02539c140a328ba446c24872
Author: huangfeiyu <[email protected]>
Commit: GitHub <[email protected]>

    Update eldoc-mouse documentation function definition
    
    Changed the definition of `eldoc-mouse--eldoc-documentation-functions` to 
use `defvar-local` and a list.
---
 README.md | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 0c35975faef..046788b32da 100644
--- a/README.md
+++ b/README.md
@@ -67,10 +67,9 @@ You can customize the behavior of eldoc-mouse by adjusting 
the variables. For in
    ```
 2. add the function name to the `eldoc-mouse` variable 
`eldoc-mouse--eldoc-documentation-functions`. for example:
    ```elisp
-   (defvar eldoc-mouse--eldoc-documentation-functions
-      '(eldoc-mouse--eglot-eldoc-documentation-function
-        eldoc-mouse--elisp-eldoc-documentation-function)
-      "The `eldoc-documentation-functions' for `eldoc-mouse-mode'.")
+   (defvar-local eldoc-mouse--eldoc-documentation-functions
+    (list #'eldoc-mouse--eglot-eldoc-documentation-function 
#'eldoc-mouse--elisp-eldoc-documentation-function)
+   "The `eldoc-documentation-functions' for `eldoc-mouse-mode'.")
    ```
 3. submit a pull request. I'd love to merge it.
 

Reply via email to