diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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))) |