aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-eglot.el
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-22 00:20:05 +0800
committerGuangxiong Lin <[email protected]>2022-04-22 00:20:05 +0800
commit811b18bdbd6002f3a8aaa1b85cc25eea70a05934 (patch)
tree8e0e9979b92f10bda30a214024b1b5ff5bba3a0d /.emacs.d/lisp/init-eglot.el
parent49aa78b8d2e01b275038eb3869660fde3a077423 (diff)
downloaddotfiles-811b18bdbd6002f3a8aaa1b85cc25eea70a05934.tar.gz
dotfiles-811b18bdbd6002f3a8aaa1b85cc25eea70a05934.tar.bz2
dotfiles-811b18bdbd6002f3a8aaa1b85cc25eea70a05934.zip
Add config of python (emacs)
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))