help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How not to share `local-set-key' with all other buffers in the same


From: Skip Montanaro
Subject: Re: How not to share `local-set-key' with all other buffers in the same major mode?
Date: Fri, 2 Apr 2021 07:44:09 -0500

I would like to use editing modes as temporary view modes where I
> would like to set a key like "q" or "i" temporarily, like this for
> example:
>
> (local-set-key "q" 'quit-window)
>
> And I use it in read only mode.
>

Would the minor view-mode do what you want?

https://www.gnu.org/software/emacs/manual/html_node/emacs/View-Mode.html

Skip

>


reply via email to

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