Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keymap prefix needs to be set before loading lsp-mode #1174

Closed
richcarl opened this issue Jan 17, 2022 · 1 comment · Fixed by #1175
Closed

Keymap prefix needs to be set before loading lsp-mode #1174

richcarl opened this issue Jan 17, 2022 · 1 comment · Fixed by #1175

Comments

@richcarl
Copy link

(setq lsp-keymap-prefix "C-l")

If lsp-keymap-prefix is set after lsp-mode is loaded, it doesn't actually affect the key binding.
From https://emacs-lsp.github.io/lsp-mode/page/installation/:

;; if you want to change prefix for lsp-mode keybindings.
(setq lsp-keymap-prefix "s-l")

(require 'lsp-mode)
(add-hook 'XXX-mode-hook #'lsp)
@robertoaloi
Copy link
Member

Thanks for reporting @richcarl . I swapped the order of the two expressions in #1175 , feel free to have a look!

robertoaloi added a commit that referenced this issue Jan 20, 2022
…loading-lsp-mode

[#1174] [emacs] Ensure keybinding is configured before loading lsp-mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants