Skip to content

Commit 03d7125

Browse files
stapelberggopherbot
authored andcommitted
gopls/doc/emacs.md: use more precise before-save terminology
Change-Id: I7ce5818c2067ae687ce3258189701396a2eea8cb Reviewed-on: https://go-review.googlesource.com/c/tools/+/592335 Reviewed-by: Alan Donovan <[email protected]> Auto-Submit: Michael Stapelberg <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent e4b0a18 commit 03d7125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gopls/doc/emacs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ project root.
111111
;; Optional: install eglot-format-buffer as a save hook.
112112
;; The depth of -10 places this before eglot's willSave notification,
113113
;; so that that notification reports the actual contents that will be saved.
114-
(defun eglot-format-buffer-on-save ()
114+
(defun eglot-format-buffer-before-save ()
115115
(add-hook 'before-save-hook #'eglot-format-buffer -10 t))
116-
(add-hook 'go-mode-hook #'eglot-format-buffer-on-save)
116+
(add-hook 'go-mode-hook #'eglot-format-buffer-before-save)
117117
```
118118

119119
### Configuring `gopls` via Eglot

0 commit comments

Comments
 (0)