reddit / emacs

lsp-mode ctrl-mouse-1

JohnDoe365 · 2022-05-06 06:05
I am used to switch buffers with ctrl-mouse-1 yet lsp-mode installs a binding for textDocument/definition. I do not want that binding or want it rather replaced with another binding. The documentation lists default key bindings but not the mouse bindings. As I am relatively new to Emacs, * How can I display all bindings lsp-mode binds (mouse+keyboard) * How can I specifically rebind the existing ctrl-mouse-1 to another combination?
yyoncho · 2022-05-06 17:40
1. M-x describe-bindings | describe-mode or by going in lsp-mode.el and looking for mouse. 2. ``` (with-eval-after-load 'lsp-mode (define-key lsp-mode-map (kbd "C-<down-mouse-1>") nil)) ```