From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: Disabling all keybindings - How? Date: Fri, 11 Oct 2002 16:42:24 +0200 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034347646 7446 127.0.0.1 (11 Oct 2002 14:47:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 11 Oct 2002 14:47:26 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18014X-0001va-00 for ; Fri, 11 Oct 2002 16:47:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18013N-0004N2-00; Fri, 11 Oct 2002 10:46:13 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.162.153.118!news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2475 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2475 Klaus Berndl writes: > OK, now my question: How to disable all Emacs-keybindings for my new > major-mode? Is this possible with one command? You probably want `make-sparse-keymap'. And now for a bit of fun -- Erik Naggum's poor man's vi-mode: | e.g., you can do this to get into "poor man's vi-mode": | | (use-global-map (make-sparse-keymap)) | | like vi, it will beep at everything you do, and you can't quit. have fun!