racer-rust / emacs-racer

Racer support for Emacs
399 stars 48 forks source link

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

Open yuzumx opened 5 years ago

yuzumx commented 5 years ago

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.

Wilfred commented 5 years ago

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.

yuzumx commented 5 years ago

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