json-emacs / json-mode

Major mode for editing JSON files with emacs
314 stars 66 forks source link

Refactor to allow setting custom autoload entry #46

Closed notetiene closed 7 years ago

notetiene commented 7 years ago

This allows setting custom files to be loaded automatically with json-mode. I saw that some files were added recently, but it doesn't cover much of the file names we can get in web development.

Unless the customization option is set from custom-set-variables, the package is not loaded until an autoload function is called.

notetiene commented 7 years ago

However, I don't see any reason not to load the package if the user set json-mode-auto-mode-list.

joshwnj commented 7 years ago

This is great @notetiene - something I've wanted for a while but never got around to. Thanks!