From 2621c0a8f79f53b4189b4644fc93b9fe528b8be9 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Mon, 1 Apr 2024 11:16:38 -0400 Subject: [PATCH] fix(emacs): change eglot-java-keymap loading to use hook Signed-off-by: Lucas Sta Maria --- .emacs.d/include/misc.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.emacs.d/include/misc.el b/.emacs.d/include/misc.el index ada92fb..382251a 100644 --- a/.emacs.d/include/misc.el +++ b/.emacs.d/include/misc.el @@ -199,9 +199,10 @@ "r" #'eglot-rename "f" #'eglot-format-buffers) -(with-eval-after-load 'eglot-java - (keymap-global-set "C-c l" eglot-java-keymap) - (setq c-basic-offset 2)) +(add-hook 'eglot-java-mode-hook + (lambda () + (keymap-local-set "C-c l" eglot-java-keymap) + (setq c-basic-offset 2))) (set-face-attribute 'eglot-highlight-symbol-face nil :family "JetBrains Mono"