|
From: | Stefan Monnier |
Subject: | Re: Using keymap argument of define-minor-mode |
Date: | Fri, 15 Apr 2016 08:36:56 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> The docstring of `define-minor-mode' says that KEYMAP can be a list of > arguments to `easy-mmode-define-keymap'. However, this doesn't seem to work: I recommend you stay away from it. Just use (defvar foo-mode-map (let ((map (make-sparse-keymap))) <bindings> map)) (define-minor-mode foo-mode "blabla" <body>) -- Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |