On Mon, Nov 18, 2019 at 07:28:45AM -0400, David Bremner wrote: > Dima Kogan <d...@secretsauce.net> writes: > > > Thanks for the patches, Agustin. I just tried it out. Works for the most > > part. One thing that doesn't work for me is (gnuplot-mode) being > > executed when opening a .gp file. You added this to the package, and the > > dh-elpa machinery is creating the appropriate file: > > > > /etc/emacs/site-start.d/50elpa-gnuplot-mode.el > > > > I don't think this is being evaluated, however. Is it working for you? > > That's not loaded by elpa packages. > > The general approach is to add an autoload cookie to set > auto-mode-alist. See "HINTS" in dh_elpa(1). Of course the usual cautions > about auto-mode-alist apply, in particular there's no nice way to resolve > conflicts with other packages (e.g. pari-gp) that might want to use the > same suffix.
Hi, I have been thinking about this and I see a problem with the elpa way of handling prefix auto-mode-alist associations. They go to a file that is not a conffile. So, if that kind of conflicts appear it is not as easy to handle as just editing one of the conffiles and commenting the undesired association. Regards, -- Agustin