lijunsong / pollen-mode

An Emacs major mode for editing in pollen markup language
GNU Lesser General Public License v3.0
42 stars 9 forks source link

Add autoloads to minor mode and server commands #20

Closed kisaragi-hiu closed 4 years ago

kisaragi-hiu commented 4 years ago

Sometimes when I start editing a new Pollen project, I'll work on the template first, which would ideally be in web-mode + pollen-minor-mode. However, as pollen-minor-mode isn't autoloaded, I'd have to M-: (require 'pollen-mode) manually before being able to use it. The story is similar with pollen-server-start: it'd be nice to be able to start the server without first having visited a .pm file.

Adding autoload cookies on pollen-minor-mode and pollen-server-start fixes this.

lijunsong commented 4 years ago

Yes, that works! Thanks for the patch!