Blogroll

Tech Travels

[emacs] toggle a buffer in read only

I’m a bit abstracted and usually works with a lot of opened files. So it happens sometimes that in the rush of job i ended editing a file instead of another.

I’m also usual to open existing files I wrote in order to get some hints. And I could edit them for error. To avoid this I usually use my preferred editor functionality to set a buffer as read only, so it’s not possible to write inside it. How?