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.