aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-22 21:05:55 +0800
committerGuangxiong Lin <[email protected]>2022-04-22 21:05:55 +0800
commit19de27dab19a8493d8a9c1654bd229362b1ebd88 (patch)
tree56c29d34dbdcb790cb46a49bed0a2ab76e15b3fd /.emacs.d
parentb26c3e86b3ca6de3b2fd937327687659aaec042f (diff)
downloaddotfiles-19de27dab19a8493d8a9c1654bd229362b1ebd88.tar.gz
dotfiles-19de27dab19a8493d8a9c1654bd229362b1ebd88.tar.bz2
dotfiles-19de27dab19a8493d8a9c1654bd229362b1ebd88.zip
Use eglot in c
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/init-c.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-c.el b/.emacs.d/lisp/init-c.el
index 020ca56..35a713e 100644
--- a/.emacs.d/lisp/init-c.el
+++ b/.emacs.d/lisp/init-c.el
@@ -1,2 +1,4 @@
-;; TODO
+(when (gx/maybe-require-package 'eglot)
+ (add-hook 'c-mode-hook #'eglot-ensure))
+
(provide 'init-c)