summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/init.el b/init.el
index 85ddc2e..ca88df7 100644
--- a/init.el
+++ b/init.el
@@ -382,6 +382,21 @@ no effect."
((add-to-list 'auto-mode-alist
(cons "\\.go$" #'go-mode))))
+;;; Rust
+
+(load-after-function rustic-mode "rust-conf.el"
+ "Load Rust configurations." nil
+ (rustic-mode))
+
+(cond
+ ((assoc "\\.rs$" auto-mode-alist #'string=)
+ (setcdr
+ (assoc "\\.rs$" auto-mode-alist #'string=)
+ #'rustic-mode))
+ ((add-to-list
+ 'auto-mode-alist
+ (cons "\\.rs$" #'rustic-mode))))
+
;;; Cat and mouse
(cond ((display-mouse-p) (mouse-avoidance-mode 'none)))