emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
teodorlu 2021-03-06T16:40:15.013Z

Beginner question. I accidentially made a text buffer readonly, and now I can't write to it πŸ˜… I've found a var called `buffer-read-only`. I tried setting it to nil, but I still can't edit the buffer content. I presume I could just restart Emacs to escape, but I'd prefer to learn. Any advice?

hindol 2021-03-07T10:57:59.021600Z

Tip: You can check what modes are currently active by typing SPC h m. There may be some other minor mode (apart from read-only-mode) at play.

πŸ‘ 1
hindol 2021-03-07T11:02:03.021900Z

You can also explore what buffer-read-only is by typing SPC h v and then searching for it. SPC h <key> is very useful in general.

πŸ‘ 1
hindol 2021-03-07T11:08:29.022100Z

P.S. I just redid what you did. I could safely exit eshell-mode by simply switching to emacs-lisp-mode. Changing the major mode also resets all the minor modes (I think).

πŸ‘ 1
teodorlu 2021-03-07T17:23:14.022700Z

Thanks!

teodorlu 2021-03-06T16:42:00.013100Z

context: i messed around with a buffer. Made it eshell-mode when I wanted emacs-lisp-mode. Then I suddenly coudn't edit stuff. When I try to delete my content, I'm getting a message "Text is read-only".

teodorlu 2021-03-06T16:46:03.013600Z

I've managed to disableΒ `read-only-mode`, but some text is stuck.

teodorlu 2021-03-06T16:49:02.014200Z

I'm on DOOM Emacs (`Doom v2.0.9 (HEAD -> develop 01b447a12 2021-03-06 10:36:33 -0500)`)

teodorlu 2021-03-06T17:07:57.014400Z

I restarted my Emacs server, that removed the problem. Still curious, though.

bob 2021-03-06T20:21:36.014600Z

I'm a non-evil Doom user. C-x C-q toggles buffer read-only mode for me.

πŸ‘ 1