]> git.eshelyaron.com Git - emacs.git/commit
New eglot-ensure to put in a major-mode's hook
authorJoão Távora <joaotavora@gmail.com>
Sun, 10 Jun 2018 12:41:10 +0000 (13:41 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 10 Jun 2018 13:35:48 +0000 (14:35 +0100)
commit1d61ff404356f024c0911623f2f3640324caa527
treec9c65e85185897b8f7aa82936748d51cf34ddf9e
parent4d076195840812070153e2d23fe2dba9763a4913
New  eglot-ensure to put in a major-mode's hook

* eglot.el (Commentary): Mention eglo-ensure.
(eglot--connect): Rearrange args.
(eglot--guess-contact): Rename from eglot--interactive.
(eglot): Use eglot--guess-contact.
(eglot, eglot-reconnect): Rearrange call to eglot--connect.
(eglot-ensure): New command to put in mode hook.

* eglot-tests.el (eglot--tests-connect): New helper.
(auto-detect-running-server, auto-reconnect, rls-watches-files)
(rls-basic-diagnostics, rls-hover-after-edit, rls-rename)
(basic-completions, hover-after-completions): Use it.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/17
lisp/progmodes/eglot.el