aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-08-07 14:05:31 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-08-07 14:05:31 +0100
commit86529cbfad3147e5b9eaee588bc638e893658931 (patch)
tree2329690430b91c91362eb65f7f23877f5273f195 /Emacs
parent38b64b3c5fcaeadde673352e2f7d914a426d3262 (diff)
downloaddotfiles-86529cbfad3147e5b9eaee588bc638e893658931.tar.gz
dotfiles-86529cbfad3147e5b9eaee588bc638e893658931.tar.bz2
dotfiles-86529cbfad3147e5b9eaee588bc638e893658931.zip
+general bindings for eglot functions
Diffstat (limited to 'Emacs')
-rw-r--r--Emacs/.config/emacs/config.org11
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