diff --git a/emacs/.emacs.d/config/init-rust.el b/emacs/.emacs.d/config/init-rust.el index 97ce610..2288c72 100644 --- a/emacs/.emacs.d/config/init-rust.el +++ b/emacs/.emacs.d/config/init-rust.el @@ -3,6 +3,9 @@ (use-package rust-mode :mode (("\\.rs\\'" . rust-mode)) :config - (add-hook 'rust-mode-hook 'lsp-deferred)) + (add-hook 'rust-mode-hook 'lsp-deferred) + (with-eval-after-load 'lsp-rust + (general-def rust-mode-map + "C-c C-c C-d" 'lsp-rust-analyzer-open-external-docs))) (provide 'init-rust)