branch: elpa/engine-mode commit 50b0d436e8ff11780b8521b7797f62893526d7de Author: Basil L. Contovounesios <conto...@tcd.ie> Commit: Harry Schwartz <he...@harryrschwartz.com>
Define prefixed map as an actual prefix command In addition to setting engine-mode-prefixed-map as a sparse keymap variable, this also sets its function cell which allows autoloading. --- engine-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine-mode.el b/engine-mode.el index f919a28cf7..4754644c9d 100644 --- a/engine-mode.el +++ b/engine-mode.el @@ -52,7 +52,8 @@ (require 'cl-lib) (defvar engine-mode-map (make-sparse-keymap)) -(defvar engine-mode-prefixed-map (make-sparse-keymap)) +(define-prefix-command 'engine-mode-prefixed-map) +(defvar engine-mode-prefixed-map) (define-minor-mode engine-mode "Minor mode for defining and querying search engines through Emacs.