emacs-racer icon indicating copy to clipboard operation
emacs-racer copied to clipboard

Do I need to manually turn on the eldoc-mode of the racer?

Open yuzumx opened this issue 6 years ago • 2 comments

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.

yuzumx avatar Dec 02 '18 02:12 yuzumx

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 avatar Dec 11 '18 23:12 Wilfred

@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?

yuzumx avatar Dec 11 '18 23:12 yuzumx