unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Is there a way to unset all Emacs key bindings?
Date: Thu, 16 Jan 2014 18:17:08 +0100	[thread overview]
Message-ID: <877g9zsv6a.fsf@nl106-137-194.student.uu.se> (raw)
In-Reply-To: mailman.12070.1389861047.10748.help-gnu-emacs@gnu.org

Parke <parke.nexus@gmail.com> writes:

> I have made a list of the key bindings I want.  I
> want to unset all other key bindings.

I don't know how to do that, but is that wise? Don't
you want different keybindings for different modes? Or
do you intend to set them up one by one? That would be
a huge (and boring) task.

If you want a couple of global keybindings, that is,
"global" in the sense they'd work everywhere, what I do
is I first define them as global, and then if I find
they don't work in some mode (because of a local
binding on top) -- and I don't have to analyze that
because sooner rather and later I run into it by normal
usage -- in any case, then, I set the local binding to
nil in initialization, be it a hook or otherwise.

They say you should prefix your personal bindings C-c,
in what case the above will never happen, because such
bindings should not appear in any shipped mode. However
you may still want other shortcuts and if so the above
method works.

-- 
underground experts united:
http://user.it.uu.se/~embe8573


       reply	other threads:[~2014-01-16 17:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.12070.1389861047.10748.help-gnu-emacs@gnu.org>
2014-01-16 17:17 ` Emanuel Berg [this message]
2014-01-16 17:42   ` Is there a way to unset all Emacs key bindings? Drew Adams
2014-01-16 18:14 ` Emanuel Berg
2014-01-17  6:47   ` Kevin Rodgers
2014-01-16  7:43 Parke
2014-01-16  9:27 ` Marcin Borkowski

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=877g9zsv6a.fsf@nl106-137-194.student.uu.se \
    --to=embe8573@student.uu.se \
    --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).