diff options
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 39cc14a..33214d8 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -726,9 +726,14 @@ Interactions with a server provide results to the client, done through JSON. :hook (c++-mode . eglot-ensure) :hook (c-mode . eglot-ensure) :bind (:map eglot-mode-map - ("<f2>" . eglot-rename) - ("C-c C-A" . eglot-code-actions) - ("C-c C-f" . eglot-format)) + ("<f2>" . eglot-rename)) + :general + (leader + :keymaps '(eglot-mode-map) + :infix "c" + "f" #'eglot-format + "a" #'eglot-code-actions + "r" #'eglot-rename) :config (add-to-list 'eglot-server-programs '((c-mode c++-mode) "clangd"))) #+END_SRC |