unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Yang Zhao <zhyang11@gmail.com>
To: emacs-devel@gnu.org
Subject: low priority minor mode keymap?
Date: Wed, 31 Oct 2018 10:08:26 -0700	[thread overview]
Message-ID: <CAP2upFXtUn9wv5R27awfAYc-ChEfu5oX8Kewo9QnnBhBD74eGw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

Hi,

When configuring god-mode (https://github.com/chrisdone/god-mode) I figure
that I want to put some keys at a lower priority than the local map, but
allowing this to be triggered based on the minor mode. I can simulate this
imperfectly with elisp code that looks up keymaps manually.

A better solution seems to be a minor-mode-low-priority-map-alist that
works similar to minor-mode-map-alist, but takes precedence after
local-map. Is something like this useful enough to get into emacs?

[-- Attachment #2: Type: text/html, Size: 636 bytes --]

             reply	other threads:[~2018-10-31 17:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-31 17:08 Yang Zhao [this message]
2018-11-02 15:22 ` low priority minor mode keymap? Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP2upFXtUn9wv5R27awfAYc-ChEfu5oX8Kewo9QnnBhBD74eGw@mail.gmail.com \
    --to=zhyang11@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).