Re: elpa startup
"Barak A. Pearlmutter" <barak@pearlmutter.net> writes:
> I'm converting my most trivial emacs package, vala-mode-el, to
> elpa-vala-mode. In vala-mode-el, the emacsen-startup file contains this
> snippet:
>
> (autoload 'vala-mode "vala-mode" "Major mode for editing Vala code." t)
> (add-to-list 'auto-mode-alist '("\\.vala$" . vala-mode))
> (add-to-list 'auto-mode-alist '("\\.vapi$" . vala-mode))
> (add-to-list 'file-coding-system-alist '("\\.vala$" . utf-8))
> (add-to-list 'file-coding-system-alist '("\\.vapi$" . utf-8))
>
> The dh_elpa stuff handles the autoload, of course.
>
> But how do I get the auto-mode-alist tweaked to made this the default
> mode for .vala files?
Thinking about it, it would be normal that the automatic autoload
generation does it. And indeed, there are ";;;autoload" stanzas for it
in vala-mode.el, at least in vala-mode as downloaded from melpa. There
are not in the debian package, but you just need to add
;;;###autoload
alone on its line in vala-mode.el before each line you want in the
autoload file.
--
Rémi Vanicat
Reply to:
- References:
- elpa startup
- From: "Barak A. Pearlmutter" <barak@pearlmutter.net>