summaryrefslogtreecommitdiff
path: root/lisp/programming/rust.el
blob: a192fc4c845317c98bf1120f05ff8c6f0a5e00a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;;; rust.el -*- lexical-binding: t; -*-
;;;
;;; Author:  Jakob L. Kreuze <zerodaysfordays@sdf.org>
;;; URL:     https://git.sr.ht/~jakob/.emacs.d/
;;;
;;; Configuration of a development environment for the Rust programming
;;; language.
;;;

(use-package rust-mode
  :hook
  (rust-mode . eglot-ensure)
  (rust-mode . company-mode)

  ;; Run 'rustfmt' automatically.
  :init
  (setq rust-format-on-save t))

;; Enable keybindings for working with Cargo.

(use-package cargo
  :hook (rust-mode . cargo-minor-mode))

© 2015 - 2026 Jakob L. Kreuze