;;; rust.el -*- lexical-binding: t; -*- ;;; ;;; Author: Jakob L. Kreuze ;;; 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))