From 86529cbfad3147e5b9eaee588bc638e893658931 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 7 Aug 2020 14:05:31 +0100 Subject: +general bindings for eglot functions --- Emacs/.config/emacs/config.org | 11 ++++++++--- 1 file 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 - ("" . eglot-rename) - ("C-c C-A" . eglot-code-actions) - ("C-c C-f" . eglot-format)) + ("" . 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 -- cgit v1.2.3-13-gbd6f