summaryrefslogtreecommitdiff
path: root/emacs/functions.el
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-09-17 12:24:29 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2022-09-17 12:24:29 +0100
commitb05b52881207b134c6ab08710ae55ac421faea9b (patch)
tree8b1ac5783f0523f5ef8b68a6a69ab38e72f50c36 /emacs/functions.el
parentfa7c95b200c3778a9e94afb77ed67c526dd13f3a (diff)
emacs: Use Eglot with Go
Diffstat (limited to 'emacs/functions.el')
-rw-r--r--emacs/functions.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/functions.el b/emacs/functions.el
index 11db1ee..d23e412 100644
--- a/emacs/functions.el
+++ b/emacs/functions.el
@@ -90,6 +90,10 @@ enabled."
(float-time (time-subtract after-init-time before-init-time))
gcs-done))
+(defun my/eglot-organize-imports ()
+ "Interactively call ‘eglot-code-action-organize-imports’."
+ (call-interactively #'eglot-code-action-organize-imports))
+
(defmacro my/with-add-hook (hook &rest body)
(declare (indent 1) (debug t))
`(add-hook ,hook #'(lambda () ,@body)))