Move lang files
Some checks are pending
/ Test config on ${{matrix.node}} (20) (push) Waiting to run
Some checks are pending
/ Test config on ${{matrix.node}} (20) (push) Waiting to run
This commit is contained in:
parent
bf90b046b8
commit
1f20dd7bc1
27 changed files with 81 additions and 82 deletions
33
lang/rust.el
33
lang/rust.el
|
|
@ -1,33 +0,0 @@
|
|||
;;; rust -- summary -*- lexical-binding: t; -*-
|
||||
;;; Commentary:
|
||||
;;; Code:
|
||||
|
||||
(require 'icejam-prog-mode)
|
||||
|
||||
(use-package rust-mode
|
||||
:straight t
|
||||
:defer t)
|
||||
|
||||
(use-package flycheck-rust
|
||||
:straight t
|
||||
:defer t
|
||||
:requires (rust-mode lsp))
|
||||
|
||||
(defun activate-rust-mode ()
|
||||
"All things for Rust mode."
|
||||
(interactive)
|
||||
(set-indent 4)
|
||||
(column-enforce-n 99)
|
||||
|
||||
;; Run LSP
|
||||
(lsp-deferred)
|
||||
|
||||
;; Company list override
|
||||
(add-to-list (make-local-variable 'company-backends)
|
||||
'(company-capf company-yasnippet)))
|
||||
|
||||
(add-hook 'rust-mode-hook 'activate-rust-mode)
|
||||
(add-hook 'rust-mode-hook 'flycheck-rust-setup)
|
||||
|
||||
(provide '+custom-lang-rust)
|
||||
;;; rust.el ends here
|
||||
Loading…
Add table
Add a link
Reference in a new issue