unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tomas Nordin <tomasn@posteo.net>
To: Dmitry Alexandrov <dag@gnui.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: diff-goto-source hi-jacks my M-o
Date: Mon, 06 Jul 2020 22:07:08 +0200	[thread overview]
Message-ID: <87pn985rwz.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <h7uk305s.dag@gnui.org>

Dmitry Alexandrov <dag@gnui.org> writes:

> Tomas Nordin <tomasn@posteo.net> wrote:
>> Dmitry Alexandrov <dag@gnui.org> writes:
>>> Tomas Nordin <tomasn@posteo.net> wrote:
>>>> And if one is to be voted away, I vote for my precious M-o to be left alone.
>>>
>>> 	(define-minor-mode my-precious-keys-mode "" t)
>>> 	(defvar my-precious-keys-map (make-sparse-keymap))
>>> 	(add-to-list 'emulation-mode-map-alists
>>> 	             (list (cons 'my-precious-keys-mode my-precious-keys-map)))
>>>         (define-key my-precious-keys-map (kbd "M-o") #'other-window)
>
>> define-dummy-mode-and-dummy-key-map-…
>
> I am not sure, what ‘dummy’ is supposed to mean here?  Minor mode is fully functional, that is you are free to disable and reenable it at will:

I think I sort of tried to be funny, based on that the mode was made up
just to keep a key binding available in all situations. And that the
trickery with the key-maps is hard to follow for me.

I got the impression that it sufficed to evaluate the forms, I mean, I
didn't say, M-x my-precious-keys-mode .



  reply	other threads:[~2020-07-06 20:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-05 15:55 diff-goto-source hi-jacks my M-o Tomas Nordin
2020-07-05 20:39 ` Tomas Nordin
2020-07-06  2:20 ` Dmitry Alexandrov
2020-07-06 10:27   ` Tomas Nordin
2020-07-06 19:37     ` Dmitry Alexandrov
2020-07-06 20:07       ` Tomas Nordin [this message]
2020-07-06 21:46         ` Dmitry Alexandrov
2020-12-27 15:09           ` Tomas Nordin
2020-12-27 17:29             ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-28 16:41               ` Tomas Nordin

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=87pn985rwz.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me \
    --to=tomasn@posteo.net \
    --cc=dag@gnui.org \
    --cc=help-gnu-emacs@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.
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).