<module-name>-description variable which is displayed on add-on
listing shown up by C-c ^ (M-x riece-command-list-addons).
-To see the add-on's enabled/disabled status, look at riece-addon-enabled
+To see the add-on's enabled/disabled status, check riece-addon-enabled
property set on <module-name> symbol.
Riece does the following procedure on add-ons when startup.
(if verbose
(message "Add-on %S is already enabled" addon))
(let ((enable (intern-soft (concat (symbol-name addon) "-enable"))))
- (if (or (null enable)
- (not (fboundp enable)))
+ (if (and enable
+ (fboundp enable))
(funcall enable))
(put addon 'riece-addon-enabled t)
(if verbose
(if verbose
(message "Add-on %S is already disabled" addon))
(let ((disable (intern-soft (concat (symbol-name addon) "-disable"))))
- (if (or (null disable)
- (not (fboundp disable)))
+ (if (and disable
+ (fboundp disable))
(funcall disable))
(put addon 'riece-addon-enabled nil)
(if verbose