j emacs: set racer paths for use with a shell-nix

This commit is contained in:
Jeschli 2019-12-11 19:34:08 +01:00
parent ff5430a015
commit c4806aa4f7

View File

@ -123,6 +123,8 @@ let
#
# This requires rls and racer to be installed on the system
rustDevelopment = ''
(setq racer-rust-src-path nil) ;; read from shell-nix
(setq racer-cmd "racer") ;; read from shell-nix
(add-hook 'rust-mode-hook #'racer-mode)
(add-hook 'rust-mode-hook (lambda()
(local-set-key (kbd "C-c C-d") 'racer-describe)