all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Johnson <tim@akwebsoft.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Overriding major mode key bindings
Date: Mon, 5 Sep 2016 07:16:10 -0800	[thread overview]
Message-ID: <20160905151610.GB12566@mail.akwebsoft.com> (raw)
In-Reply-To: <CAAjq1mfOSgSoLFKqBkfSDQqGk2oBSQnLq+DiAkgbmaoaTMK7QQ@mail.gmail.com>

* Grant Rettke <gcr@wisdomandwonder.com> [160905 06:29]:
> On Sun, Sep 4, 2016 at 7:02 PM, Tim Johnson <tim@akwebsoft.com> wrote:
> > After some research, it looks like what I really should do is
> > to create my own minor mode and and bind the keys the I want to
> > "protect" to that minor mode.
> >
> > See
> > http://emacs.stackexchange.com/questions/352/how-to-override-major-mode-bindings/358#358
> >
> > Am I on the right track? I am soliciting a second opinion.
> 
> Yes because `global-set-key' bindings can easily get stomped on to
> your point. The caveat is that it is fine if you only use it for
> virtually never used keys. For example I use `f9' because it is a
> long-reach and no one every binds to it. Sounds like you are bindings
> keys that do get used often, and you aren't OK with that and that is
> exactly why you would use a minor mode.
> 
> Happy hacking.
  Thank you Grant. I will procede.
  (HHKL2-and-qisan-magicforce)
  :)

-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com



      reply	other threads:[~2016-09-05 15:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-05  0:02 Overriding major mode key bindings Tim Johnson
2016-09-05 14:14 ` Yuri Khan
2016-09-05 21:37   ` Tim Johnson
2016-09-05 14:15 ` Grant Rettke
2016-09-05 15:16   ` Tim Johnson [this message]

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

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

  git send-email \
    --in-reply-to=20160905151610.GB12566@mail.akwebsoft.com \
    --to=tim@akwebsoft.com \
    --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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.