Skip to content

Commit

Permalink
Merge pull request #530 from jroimartin/fix-rust-mode-autoload
Browse files Browse the repository at this point in the history
Fix rust-mode lazy loading
  • Loading branch information
psibi committed Mar 12, 2024
2 parents d8a09f2 + db7d086 commit 825a37d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust-mode.el
Expand Up @@ -75,6 +75,9 @@ instead of `prog-mode'. This option requires emacs29+."
(require 'rust-mode-treesitter)
(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))

Expand Down

0 comments on commit 825a37d

Please sign in to comment.