about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/workstation/emacs/init.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el
index 06136bc10323..5ae67daa7d11 100644
--- a/modules/workstation/emacs/init.el
+++ b/modules/workstation/emacs/init.el
@@ -93,10 +93,11 @@
 
   ;; Underline all occurrences of the symbol at point in the current
   ;; buffer (default is to bold instead).
-  (set-face-attribute 'eglot-highlight-symbol-face nil :inherit 'underline))
+  (set-face-attribute 'eglot-highlight-symbol-face nil :inherit 'underline)
 
-(global-set-key (kbd "C-c e a") #'eglot-code-actions)
-(global-set-key (kbd "C-c e r") #'eglot-rename)
+  ;; Add keybindings for eglot actions.
+  (define-key eglot-mode-map (kbd "C-c e a") #'eglot-code-actions)
+  (define-key eglot-mode-map (kbd "C-c e r") #'eglot-rename))
 
 ;;; Environment ;;;