From 126ab99453e16ad971b2db1a05c13725c15544d5 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 22 Apr 2022 21:31:37 +0800 Subject: Use eglot for not only c --- .emacs.d/lisp/init-c.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.emacs.d/lisp') diff --git a/.emacs.d/lisp/init-c.el b/.emacs.d/lisp/init-c.el index 35a713e..6008340 100644 --- a/.emacs.d/lisp/init-c.el +++ b/.emacs.d/lisp/init-c.el @@ -1,4 +1,4 @@ (when (gx/maybe-require-package 'eglot) - (add-hook 'c-mode-hook #'eglot-ensure)) + (add-hook 'c-mode-common-hook #'eglot-ensure)) (provide 'init-c) -- cgit v1.2.3