aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-eglot.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/lisp/init-eglot.el')
-rw-r--r--.emacs.d/lisp/init-eglot.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-eglot.el b/.emacs.d/lisp/init-eglot.el
index 5409958..311c5d3 100644
--- a/.emacs.d/lisp/init-eglot.el
+++ b/.emacs.d/lisp/init-eglot.el
@@ -1,3 +1,6 @@
+(when (gx/maybe-require-package 'eglot)
+ (autoload #'eglot-ensure "eglot" nil t))
+
(defun gx/eglot-format-before-save ()
(add-hook 'before-save-hook #'eglot-format nil t))