From 9da68c7dd669d654b5e0767cc4ebc366e88266d4 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Wed, 15 Oct 2025 19:45:53 +0100 Subject: Add additional eglot keybindings --- emacs-config.org | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'emacs-config.org') diff --git a/emacs-config.org b/emacs-config.org index 0b3bb7d..748cb5a 100644 --- a/emacs-config.org +++ b/emacs-config.org @@ -1470,10 +1470,13 @@ Add version control next action shortcut in diff-mode buffer. Configure eglot. #+begin_src elisp (with-eval-after-load 'eglot - (keymap-set eglot-mode-map "C-# a" #'eglot-code-actions) - (keymap-set eglot-mode-map "C-# f" #'eglot-format) - (keymap-set eglot-mode-map "C-# r" #'eglot-rename) - (set-face-attribute 'eglot-inlay-hint-face + (keymap-set eglot-mode-map "M-# a" #'eglot-code-actions) + (keymap-set eglot-mode-map "M-# f" #'eglot-format) + (keymap-set eglot-mode-map "M-# r" #'eglot-rename) + (keymap-set eglot-mode-map "M-# M-;" #'eglot-find-declaration) + (keymap-set eglot-mode-map "M-# M-'" #'eglot-find-implementation) + (keymap-set eglot-mode-map "M-# M-." #'eglot-find-typeDefinition) + (set-face-attribute 'eglot-inlay-hint-face '((t (:height 1.0 :inherit shadow))))) #+end_src -- cgit