summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-15 14:22:38 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-15 14:22:38 +0200
commitd521cc0183a83606e387ccbd2b300128632d2a99 (patch)
tree19cef85ea7c75786d782729f6b08368e7496ddba /.config
parent7c437a17ea6f522e9ba132695d85611e54c56de5 (diff)
emacs: Properly handle Rust files
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/config.org12
1 files changed, 12 insertions, 0 deletions
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