From 27f96a1bd17e014a8ae5d2bc454be345ac5d3895 Mon Sep 17 00:00:00 2001 From: John Doty Date: Mon, 1 Apr 2019 12:03:20 -0700 Subject: [PATCH] Rust --- .emacs.d/custom.el | 2 +- .emacs.d/init.el | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.emacs.d/custom.el b/.emacs.d/custom.el index fda6be4..df9ac66 100644 --- a/.emacs.d/custom.el +++ b/.emacs.d/custom.el @@ -58,7 +58,7 @@ ((sequence "TODO" "|" "DONE" "ABANDONED" "DEFERRED")))) '(package-selected-packages (quote - (filladapt vc-hgcmd lsp-ui yaml-mode wgrep fsharp-mode company-lsp cquery mustache-mode clang-format projectile dash-functional mocha add-node-modules-path rjsx-mode xref-js2 js2-refactor company omnisharp geiser cider clojure-mode graphviz-dot-mode multi-term xterm-color thrift markdown-mode tuareg merlin ag use-package flycheck dockerfile-mode js2-mode web-mode zencoding-mode tss switch-window python-mode paredit magit lua-mode go-mode go-autocomplete exec-path-from-shell csharp-mode color-theme-solarized color-theme-monokai auto-complete auto-complete-nxml flymake flyspell json-mode popup ruby-mode company-jedi tide ahg elm-mode monky))) + (rust-mode filladapt vc-hgcmd lsp-ui yaml-mode wgrep fsharp-mode company-lsp cquery mustache-mode clang-format projectile dash-functional mocha add-node-modules-path rjsx-mode xref-js2 js2-refactor company omnisharp geiser cider clojure-mode graphviz-dot-mode multi-term xterm-color thrift markdown-mode tuareg merlin ag use-package flycheck dockerfile-mode js2-mode web-mode zencoding-mode tss switch-window python-mode paredit magit lua-mode go-mode go-autocomplete exec-path-from-shell csharp-mode color-theme-solarized color-theme-monokai auto-complete auto-complete-nxml flymake flyspell json-mode popup ruby-mode company-jedi tide ahg elm-mode monky))) '(reb-re-syntax (quote string)) '(rmail-mail-new-frame t) '(safe-local-variable-values diff --git a/.emacs.d/init.el b/.emacs.d/init.el index baf3443..c2b5cc6 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -867,4 +867,15 @@ (require 'fb-note-publish))) (add-hook 'markdown-mode-hook 'my-markdown-mode-hook) + + +;; ================================================================= +;; Rust +;; ================================================================= +(use-package rust-mode :ensure t + :mode "\\.rs\\'" + :config + (setq rust-format-on-save t)) + + ;;; init.el ends here