2023-04-14 18:39:19 +02:00
|
|
|
;;; lang-rust.el --- Configuración para el lenguaje Rust -*- lexical-binding: t -*-
|
2022-05-06 23:29:24 +02:00
|
|
|
|
|
|
|
;; Author: kj <webmaster@outcontrol.net>
|
|
|
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
2023-04-14 18:39:19 +02:00
|
|
|
;; Archivo de configuración para el lenguaje Rust
|
|
|
|
|
2022-05-06 23:29:24 +02:00
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(use-package rust-mode
|
|
|
|
:defer t
|
2022-05-27 23:04:28 +02:00
|
|
|
:straight t
|
2022-05-18 09:08:59 +02:00
|
|
|
:ensure t
|
|
|
|
:config
|
|
|
|
(setq rust-format-on-save t))
|
2022-05-06 23:29:24 +02:00
|
|
|
|
2023-02-05 22:28:21 +01:00
|
|
|
;; Rustic es necesario solamente si se usa lsp-mode + flycheck.
|
|
|
|
;; (use-package rustic
|
|
|
|
;; :defer t
|
|
|
|
;; :straight t
|
|
|
|
;; :ensure t
|
|
|
|
;; :config
|
|
|
|
;; ;;(setq rustic-lsp-server 'rls)
|
|
|
|
;; (setq rustic-lsp-client 'lsp)
|
|
|
|
;; ;;(setq rustic-lsp-client nil)
|
|
|
|
;; (push 'rustic-clippy flycheck-checkers))
|
2022-05-06 23:29:24 +02:00
|
|
|
|
|
|
|
(provide 'lang-rust)
|
|
|
|
;;; lang-rust.el ends here
|