Created
August 12, 2015 14:03
-
-
Save paomian/938de20ee45ebe0bdd67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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