Skip to content

Instantly share code, notes, and snippets.

@paomian
Created August 12, 2015 14:03
Show Gist options
  • Save paomian/938de20ee45ebe0bdd67 to your computer and use it in GitHub Desktop.
Save paomian/938de20ee45ebe0bdd67 to your computer and use it in GitHub Desktop.
(require 'prelude-programming)
;;; Code:
(prelude-require-packages '(rust-mode
racer))
(require 'rust-mode)
(setq racer-rust-src-path "/Users/ipaomian/work/rust/rustc-1.1.0/src")
(setq racer-cmd "/Users/ipaomian/work/rust/racer/target/release/racer")
;;(add-to-list 'load-path "<path-to-racer>/editors/emacs")
;;
(eval-after-load 'rust-mode
'(progn
(require 'racer)
(add-hook 'rust-mode-hook
'(lambda ()
(racer-activate)
(local-set-key (kbd "M-.") #'racer-find-definition)
(local-set-key (kbd "TAB") #'racer-complete-or-indent)))))
(provide 'prelude-rust)
;;; prelude-rust.el ends here
;;;(lambda ()
;;(racer-activate)
;;(local-set-key (kbd "M-.") #'racer-find-definition)
;;(local-set-key (kbd "TAB") #'racer-complete-or-indent))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment