[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diff-goto-source hi-jacks my M-o

From: Dmitry Alexandrov
Subject: Re: diff-goto-source hi-jacks my M-o
Date: Mon, 06 Jul 2020 05:20:56 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Tomas Nordin <> 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)

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]