From cc9ba3d92990a0776d2e0d5db924436cfb6cbe83 Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Mon, 12 Jun 2017 22:43:06 +0200 Subject: [PATCH] Begin autoloading of the webpaste group This will make it much easier for the user to discover available options. It seems like a bad thing to autoload defcustom's but not defgroup's. This conclusion is based on what's have been done in haskell-mode: Here they remove their autoloads of customs because it breaks shit: https://github.com/haskell/haskell-mode/commit/f0affb46b857c62d30de31a678d36e56831b775d But, what they don't remove is the autoload of the group: https://github.com/haskell/haskell-mode/blob/f0affb46b857c62d30de31a678d36e56831b775d/ghc-core.el#L35 So I'll assume that it's safe to autoload the group. This makes it possible for users to run M-x customize-group webpaste without having to either do a manual require or to use the mode before configuring. This is a good improvement for discoverability for new users. --- webpaste.el | 1 + 1 file changed, 1 insertion(+) diff --git a/webpaste.el b/webpaste.el index 6ed18a6..2a9a91f 100644 --- a/webpaste.el +++ b/webpaste.el @@ -40,6 +40,7 @@ +;;;###autoload (defgroup webpaste nil "Configuration options for webpaste.el where you can define paste providers, provider priority for which order which provider should be tried when used."