summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSibi Prabakaran <sibi@psibi.in>2024-03-12 09:18:46 +0530
committerGitHub <noreply@github.com>2024-03-12 09:18:46 +0530
commit825a37dbf7b3a5c2ee44e3707c4ad081fdf7dd15 (patch)
treeda732ab3dcf845c683a4f230562366d67ed623a6
parentd8a09f218e24407acbc9f36c641be4f913f1a63c (diff)
parentdb7d086233d7c37105ef39944f1b075e3a3dbe21 (diff)
downloadrust-mode-825a37dbf7b3a5c2ee44e3707c4ad081fdf7dd15.tar.gz
Merge pull request #530 from jroimartin/fix-rust-mode-autoload
Fix rust-mode lazy loading
-rw-r--r--rust-mode.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/rust-mode.el b/rust-mode.el
index 70c2a2c..ec1ecba 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -76,6 +76,9 @@ instead of `prog-mode'. This option requires emacs29+."
(require 'rust-prog-mode))
;;;###autoload
+(autoload 'rust-mode "rust-mode" "Major mode for Rust code.")
+
+;;;###autoload
(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
(provide 'rust-mode)