[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41073: [PATCH] Adjust outline-minor-mode-map when prefix is changed
From: |
Lars Ingebrigtsen |
Subject: |
bug#41073: [PATCH] Adjust outline-minor-mode-map when prefix is changed |
Date: |
Sat, 08 Aug 2020 13:53:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Philip K <philip@warpmail.net> writes:
> +(defvar outline-minor-mode-map)
> +
> (defcustom outline-minor-mode-prefix "\C-c@"
> "Prefix key to use for Outline commands in Outline minor mode.
> The value of this variable is checked as part of loading Outline mode.
> After that, changing the prefix key requires manipulating keymaps."
> :type 'key-sequence
> - :group 'outlines)
> + :group 'outlines
> + :set (lambda (sym val)
> + (define-key outline-minor-mode-map outline-minor-mode-prefix nil)
> + (define-key outline-minor-mode-map val outline-mode-prefix-map)
> + (set-default sym val)))
I don't use outline mode, but this makes sense to me (if I understand
what it's doing correctly), so I've applied the patch.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#41073: [PATCH] Adjust outline-minor-mode-map when prefix is changed,
Lars Ingebrigtsen <=