Subject: bug#40573: 27.0.90; flymake-mode broken in scratch buffer

From: Eli Zaretskii <[email-masked]>
Date: Fri, 17 Apr 2020 09:49:11 +0300

> From: Stefan Monnier <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>,  [email-masked],
>   [email-masked],  [email-masked]
> Date: Thu, 16 Apr 2020 19:06:51 -0400
> 
> > Each package could add its data file name to auto-mode-alist.
> > For example, bookmark.el could do something like:
> >
> >   (add-to-list 'auto-mode-alist (cons bookmark-default-file 'emacs-lisp-data-mode))
> 
> For generated files, it's probably better to add a -*- cookie in
> the file.

Right.  But some modes define an init file that users need to create
and maintain.