Skip to content

Commit

Permalink
Extend rust module keybindings (bbatsov#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
apiraino authored and Caleb Epstein committed Sep 4, 2019
1 parent 3e1e6ec commit b746c3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/prelude-rust.el
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@

(defun prelude-rust-mode-defaults ()
(unless (featurep 'prelude-lsp)
(local-set-key (kbd "C-c C-d") 'racer-describe))
(local-set-key (kbd "C-c C-d") 'racer-describe)
(local-set-key (kbd "C-c .") 'racer-find-definition)
(local-set-key (kbd "C-c ,") 'pop-tag-mark))

;; Prevent #! from chmodding rust files to be executable
(remove-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
Expand Down

0 comments on commit b746c3f

Please sign in to comment.