summaryrefslogtreecommitdiff
path: root/emacs.d/init.el
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-07-20 12:51:08 +0300
committerLars Wirzenius <liw@liw.fi>2021-07-20 12:51:08 +0300
commit89cc3516211dad09cc75f604d349498a4ca20680 (patch)
treeed1ad44e1e25556cb34979b528e94b26d002ff0d /emacs.d/init.el
parentad392a22b55ef278797753b82f10e4cd50a8febb (diff)
downloadliw-dot-files-89cc3516211dad09cc75f604d349498a4ca20680.tar.gz
emacs: use rustic-mode for Rust source code
Sponsored-by: author
Diffstat (limited to 'emacs.d/init.el')
-rw-r--r--emacs.d/init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index bfc500c..66d1337 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -59,6 +59,7 @@
;; Major mode for YAML files.
(use-package yaml-mode
:config
+ (add-to-list 'auto-mode-alist '("\\.rs\\'" . rustic-mode))
(add-to-list 'auto-mode-alist '("\\.ick\\'" . yaml-mode))
(add-to-list 'auto-mode-alist '("\\.vmdb\\'" . yaml-mode))
(add-to-list 'auto-mode-alist '("\\.yaml\\'" . yaml-mode))