]> git.eshelyaron.com Git - emacs.git/commit
Accept functions as entries in eglot-server-programs
authorJoão Távora <joaotavora@gmail.com>
Mon, 6 Aug 2018 16:53:09 +0000 (17:53 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 7 Aug 2018 21:10:49 +0000 (22:10 +0100)
commit71a3fb813f8e4055bc4f9f68db73be5aa17d0867
tree3baacd7548f48366a0950c89a1d1963928cbff57
parentea04e60ce5a9b8ca158668d7611331ab7713f0d3
Accept functions as entries in eglot-server-programs

CONTACT in the (MAJOR-MODE . CONTACT) association in
eglot-server-programs can now be a function of no arguments producing
any value previously valid for contact.  The function is called at
time of `M-x eglot` or `eglot-ensure`.  This is useful for servers
requiring command-line invocations that depend on the specific
momentary environment.

* eglot.el (eglot-server-programs): CONTACT can be a fucntion of no
arguments.
(eglot--guess-contact, eglot--connect): Accept function
CONTACTs.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/63
lisp/progmodes/eglot.el