How to automatically connect to host:port #1475
-
I have the following in my config, in order to connect to the server automatically when a file is loaded in a buffer.
This works - without the port - if I have the server (phpactor) installed locally and called as a program. However, I want to connect via host/port. In this case, Is I have to manually do M-x eglot, I get "[eglot] I guess you want to run Can somebody document the correct way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I looked at the code and found this
Looking at the documentation it says: "Here host is a string and port is a positive integer" so I guess it's documented there. |
Beta Was this translation helpful? Give feedback.
I looked at the code and found this
(gdscript-mode . ("localhost" 6008))
. It shined upon me to try an integer instead, the following works.(add-to-list 'eglot-servers-program '((php-mode phps-mode) "phpactor" 8890))
Looking at the documentation it says: "Here host is a string and port is a positive integer" so I guess it's documented there.