[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a way to unset all Emacs key bindings?
From: |
Kevin Rodgers |
Subject: |
Re: Is there a way to unset all Emacs key bindings? |
Date: |
Thu, 16 Jan 2014 23:47:19 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 |
On 1/16/14 11:14 AM, Emanuel Berg wrote:
(use-global-map '(keymap nil))
Or: (use-global-map (make-keymap))
And on a suitable hook: (use-local-map (make-sparse-keymap))
But according to the "Active Keymaps" node of the Emacs manual, there may be
other keymaps to disable to make emacs completely unusable:
+-------------------------------------------------------------------------------
| Normally the active keymaps are the `keymap' property keymap, the
| keymaps of any enabled minor modes, the current buffer's local keymap,
| and the global keymap, in that order. Emacs searches for each input
| key sequence in all these keymaps. *Note Searching Keymaps::, for more
| details of this procedure.
+-------------------------------------------------------------------------------
And here is what the "Searching Keymaps" node says:
+-------------------------------------------------------------------------------
| After translation of event subsequences (*note Translation Keymaps::)
| Emacs looks for them in the active keymaps. Here is a pseudo-Lisp
| description of the order and conditions for searching them:
|
| (or (if overriding-terminal-local-map
| (FIND-IN overriding-terminal-local-map)
| (if overriding-local-map
| (FIND-IN overriding-local-map)
| (or (FIND-IN (get-char-property (point) 'keymap))
| (FIND-IN-ANY emulation-mode-map-alists)
| (FIND-IN-ANY minor-mode-overriding-map-alist)
| (FIND-IN-ANY minor-mode-map-alist)
| (if (get-text-property (point) 'local-map)
| (FIND-IN (get-char-property (point) 'local-map))
| (FIND-IN (current-local-map))))))
| (FIND-IN (current-global-map)))
+-------------------------------------------------------------------------------
--
Kevin Rodgers
Denver, Colorado, USA