From 19de27dab19a8493d8a9c1654bd229362b1ebd88 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 22 Apr 2022 21:05:55 +0800 Subject: Use eglot in c --- .emacs.d/lisp/init-c.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.emacs.d/lisp') 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) -- cgit v1.2.3