emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 99f8d7b 17/49: Per #604: mention common installat


From: Stefan Monnier
Subject: [elpa] externals/eglot 99f8d7b 17/49: Per #604: mention common installation pitfalls in README.md
Date: Wed, 17 Mar 2021 18:41:45 -0400 (EDT)

branch: externals/eglot
commit 99f8d7b3b9848ecc9fe4c990be7e9af2b2907ba3
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Per #604: mention common installation pitfalls in README.md
    
    * README.md (1-2-3): Mention dependencies
---
 README.md | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index d42eefc..cfdc850 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,16 @@ Now find some source file, any source file, and type `M-x 
eglot`.
 *That's it*. If you're lucky, this guesses the LSP program to start
 for the language you're using. Otherwise, it prompts you to enter one.
 
+### _1-2-3-pitfall!_
+
+By design, Eglot doesn't depend on anything but Emacs.  But there
+_are_ ELPA dependencies to newer versions of so-called "core packages"
+developed _in the Emacs mainline_.  So unless you're using a
+bleeding-edge Emacs, where loading `eglot.el` is all you'd need to do,
+make sure your package system pulls in and loads the newest
+`project.el`, `xref.el`, `eldoc.el`, etc...  In case of trouble `M-x
+find-library` can help you tell if that happened.
+
 <a name="connecting"></a>
 # Connecting to a server
 
@@ -241,9 +251,10 @@ file in your project. The commands don't need to be 
Eglot-specific,
 either:
 
 ```lisp
-(define-key eglot-mode-map (kbd "C-c h") 'eglot-help-at-point)
-(define-key eglot-mode-map (kbd "<f6>") 'xref-find-definitions)
+(define-key eglot-mode-map (kbd "C-c r") 'eglot-rename)
 (define-key eglot-mode-map (kbd "C-c o") 'eglot-code-action-organize-imports)
+(define-key eglot-mode-map (kbd "C-c h") 'eldoc)
+(define-key eglot-mode-map (kbd "<f6>") 'xref-find-definitions)
 ```
 
 <a name="customization"></a>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]