[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?

M-x toggle-read-only

Easy! 🙂

Advertisements

One thought on “[emacs] toggle a buffer in read only

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s