rust: defer loading thanks to removing rust-mode from auto-mode-alist

This commit is contained in:
Łukasz Pankowski 2019-12-17 23:47:14 +01:00
parent 92ac862a0d
commit 3766dd502c

View File

@ -753,7 +753,9 @@ inserted between the braces between the braces."
(use-package rustic (use-package rustic
:if (>= emacs-major-version 26) :if (>= emacs-major-version 26)
:demand ; to use rustic-mode even if rust-mode also installed :init
;; to use rustic-mode even if rust-mode also installed
(setq auto-mode-alist (delete '("\\.rs\\'" . rust-mode) auto-mode-alist))
:hook (rustic-mode . my-rustic-mode-hook-fn)) :hook (rustic-mode . my-rustic-mode-hook-fn))
;;; But if you have Emacs older than 26 than you should install ;;; But if you have Emacs older than 26 than you should install