bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#59245: [PATCH] Add go-dot-mod-mode and go-dot-work-mode to eglot-ser


From: Stefan Kangas
Subject: bug#59245: [PATCH] Add go-dot-mod-mode and go-dot-work-mode to eglot-server-programs
Date: Sun, 13 Nov 2022 05:06:10 -0800

Davide Masserut via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

> This path adds go-dot-mod-mode and go-dot-work-mode to
> eglot-server-programs.

Thanks for the patch.

For posterity, could you clarify where `go-dot-mod-mode' and
`go-dot-work-mode' are from?  Are they from some external package, and
if so, could you provide a URL?  Thanks in advance.

> From e73ee956cfe46931123a3c11c32ab399d9abd39c Mon Sep 17 00:00:00 2001
> From: Davide Masserut <dm@mssdvd.com>
> Date: Sun, 13 Nov 2022 12:30:43 +0100
> Subject: [PATCH] Add go-dot-mod-mode and go-dot-work-mode to
>  eglot-server-programs
>
> * lisp/progmodes/eglot.el (eglot-server-programs): Add new major modes
> to be used with gopls.
> ---
>  lisp/progmodes/eglot.el | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
> index 97c674f7aa..98d5281d2c 100644
> --- a/lisp/progmodes/eglot.el
> +++ b/lisp/progmodes/eglot.el
> @@ -206,7 +206,7 @@ eglot-server-programs
>                                  (elm-mode . ("elm-language-server"))
>                                  (mint-mode . ("mint" "ls"))
>                                  (kotlin-mode . ("kotlin-language-server"))
> -                                (go-mode . ("gopls"))
> +                                ((go-mode go-dot-mod-mode go-dot-work-mode) 
> . ("gopls"))
>                                  ((R-mode ess-r-mode) . ("R" "--slave" "-e"
>                                                          
> "languageserver::run()"))
>                                  (java-mode . ("jdtls"))
> --
> 2.38.1





reply via email to

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