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 12:27:13 +0200 [thread overview]
Message-ID: <87y2nx5472.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <d0594c53.dag@gnui.org>
Dmitry Alexandrov <dag@gnui.org> writes:
> Tomas Nordin <tomasn@posteo.net> wrote:
>> Anyway, I discovered that one of my favorite custom key-bindings, M-o, which I use for other-window, was hi-jacked. It was hi-jacked to run the command `diff-goto-source'.
>
>> 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)
OK, tried it and it works, thanks. I tag it for possible use. The good
ol'
define-dummy-mode-and-dummy-key-map-and-add-them-to-emulation-mode-map-alists-and-finally-add-precious-binding-to-dummy-map
technique :)
next prev parent reply other threads:[~2020-07-06 10:27 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 [this message]
2020-07-06 19:37 ` Dmitry Alexandrov
2020-07-06 20:07 ` Tomas Nordin
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=87y2nx5472.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).