diff --git a/scripts/dynare.el b/scripts/dynare.el
index 839b89eb2521d33eba8dfbbfc4905887df32c51b..82d9713a32c452471e1a6fdbf9f6ec615b501c5e 100644
--- a/scripts/dynare.el
+++ b/scripts/dynare.el
@@ -28,8 +28,6 @@
 ;;   add this to your .emacs or site-init.el file:
 ;;
 ;;   (require 'dynare)
-;;   (autoload 'dynare-mode "dynare" "Enter dynare mode." t)
-;;   (setq auto-mode-alist (cons '("\\.mod\\'" . dynare-mode) auto-mode-alist))
 
 ;;; Commentary:
 ;;
@@ -107,7 +105,8 @@ For detail, see `comment-dwim'."
     ("(\\(+\\|-\\)[1-9])" . font-lock-constant-face)
     ))
 
-;; define the major mode
+;;; define the major mode
+;;;###autoload
 (define-derived-mode dynare-mode fundamental-mode
   "dynare mode"
   "dynare is a mode for editing mod files used by dynare."
@@ -149,5 +148,9 @@ For detail, see `comment-dwim'."
   (setq dynare-functions-regexp nil)
   )
 
+;;; mode trigger
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.mod$" . dynare-mode))
+
 (provide 'dynare)
 ;;; dynare.el ends here