diff options
| author | Brad Clawsie <brad@b7j0c.org> | 2024-03-16 11:46:46 -0500 |
|---|---|---|
| committer | Brad Clawsie <brad@b7j0c.org> | 2024-03-16 11:46:46 -0500 |
| commit | 0bf226e4e3d995772d6d9fd0e575c2183fbc13e2 (patch) | |
| tree | 7c3e2f8eb43f98905ad8361d398ed593cbb40ccc /emacs/dotemacs | |
| parent | fa6ca7132c22649107d36147a62433385d489146 (diff) | |
welcome back rust
Diffstat (limited to 'emacs/dotemacs')
| -rw-r--r-- | emacs/dotemacs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/dotemacs b/emacs/dotemacs index 0811fd1..12b1adb 100644 --- a/emacs/dotemacs +++ b/emacs/dotemacs @@ -59,6 +59,7 @@ nix-mode perl-doc pinentry + rustic sublime-themes toml-mode yaml-mode @@ -196,6 +197,13 @@ (add-hook 'markdown-mode-hook #'auto-fill-mode) (add-hook 'text-mode-hook #'auto-fill-mode) +;; rust +(setq rustic-format-on-save t) +(add-hook 'rustic-mode-hook #'yas-minor-mode-on) +(add-hook 'rustic-mode-hook #'electric-pair-mode) +(global-set-key (kbd "<f7>") 'rustic-cargo-current-test) +(global-set-key (kbd "<f8>") 'rustic-cargo-build) + ;; ------------------------------------------------------------- ;; time-related funcs (defun insert-unixtime () |
