The only thing I can find for this in Kate is Menu => Tools => 
Read-Only Mode.  There is
no command-line switch for this, nor can I find a DCOP function that toggles 
the setting;
so one would have to first open the document, then use the Tools menu to 
disable writing,
which seems quite error-prone. :-(
        It is, of course, possible that I've overlooked something.

Leslie

On 2021-05-06 20:19:20 test wrote:
> Hi,
>
> how can I set a buffer in kate to read-only to prevent accidentially
> changing the contents of the buffer and thus the file the buffer is
> visiting?
>
> Think emacs read-only mode.


--

Reply via email to