From d521cc0183a83606e387ccbd2b300128632d2a99 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 15 Aug 2023 14:22:38 +0200 Subject: emacs: Properly handle Rust files --- .config/emacs/config.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.config/emacs') diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 5824198..2af442f 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -1031,6 +1031,18 @@ Some modes aren’t installed by default with Emacs, so let’s fetch them #+END_SRC +** Auto-Start Modes + +Some modes need to be manually configured to automatically start when opening a +file with a certain file extension. + +#+BEGIN_SRC elisp + + (require 'rust-ts-mode) + (add-to-list 'auto-mode-alist '("\\.rsl\\'" . rust-ts-mode)) + +#+END_SRC + ** Customization Settings Emacs has a /customization variable/ that contains various configuration-related -- cgit v1.2.3