emacs-racer
emacs-racer copied to clipboard
Do I need to manually turn on the eldoc-mode of the racer?
Hello:
I saw this commit of purcell: https://github.com/purcell/emacs.d/commit/f8782da7d91a0726aad8649ee77b6bfbaf31833a
So I would like to ask, is it necessary to manually enable the eloc support for racer (under Emacs 25.1 and later)?
Thanks, and forgive my poor English.
You need eldoc-mode, or eldoc-global-mode. See step 5 in the readme:
(add-hook 'rust-mode-hook #'racer-mode)
(add-hook 'racer-mode-hook #'eldoc-mode)
With this, it should work automatically whenever you open a rust buffer.
@Wilfred Thank you for your reply.
In other words, I still need to explicitly call eldoc-mode
instead of relying on eldoc-global-mode
enabled by default?