[Top][All Lists]

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

Re: Clearning a keymap completely

From: Søren Pilgård
Subject: Re: Clearning a keymap completely
Date: Mon, 5 Sep 2016 00:27:12 +0200

On Sun, Sep 4, 2016 at 11:40 PM, Narendra Joshi <> wrote:
> I need to remove all the self-insert commands in a buffer. I want to
> be able to insert text into the buffer through emacs lisp but don't
> want the user to be able to insert text. How can this be done?
That is now how you want to solve it.
Instead look into the buffer-read-only and inhibit-read-only variables [0].
You can let bind them to temporarily edit the buffer from your code.
Messing with all the keybindings is not the way to go.


reply via email to

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