We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4b0a18 commit 03d7125Copy full SHA for 03d7125
gopls/doc/emacs.md
@@ -111,9 +111,9 @@ project root.
111
;; Optional: install eglot-format-buffer as a save hook.
112
;; The depth of -10 places this before eglot's willSave notification,
113
;; so that that notification reports the actual contents that will be saved.
114
-(defun eglot-format-buffer-on-save ()
+(defun eglot-format-buffer-before-save ()
115
(add-hook 'before-save-hook #'eglot-format-buffer -10 t))
116
-(add-hook 'go-mode-hook #'eglot-format-buffer-on-save)
+(add-hook 'go-mode-hook #'eglot-format-buffer-before-save)
117
```
118
119
### Configuring `gopls` via Eglot
0 commit comments