12 lines
291 B
EmacsLisp
12 lines
291 B
EmacsLisp
;; -*- lexical-binding: t; -*-
|
|
|
|
(use-package rust-mode
|
|
:mode (("\\.rs\\'" . rust-mode))
|
|
:config
|
|
(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)
|