emacs-howdoyou icon indicating copy to clipboard operation
emacs-howdoyou copied to clipboard

Read-only buffer?

Open seagle0128 opened this issue 4 years ago • 3 comments

Hi , thanks for this great package!

I am curious why the buffer *How Do You* is not readonly. Is there any other reason?

seagle0128 avatar Sep 10 '19 13:09 seagle0128

No strong reason, I have some custom navigation commands that won't run on read only mode.

Also editable buffer can be useful for users who want to edit it and save.

thanhvg avatar Sep 11 '19 03:09 thanhvg

IMO, if the buffer is readonly, it's easy to add navigation commands and keybindings (like n, p, q, etc.)

If the users want to edit and save the buffer, just use C-x C-q.

Another suggestion is creating a new major mode which is derived from org-mode to handle the result buffers.

seagle0128 avatar Sep 11 '19 06:09 seagle0128

That's what the original howdoi does: derived mode and read only buffer.

I don't want to create a derived mode. My idea is getting a free ride on org-mode power. Uses enjoy all the customization they are having with their own config. Also default navigation commands in org-mode are already very good.

I agree that having extra commands and read only also makes sense. But to my knowledge without a derived mode it would be hard to have a command bound to a specific buffer. If you or anyone knows how please let me know.

thanhvg avatar Sep 11 '19 14:09 thanhvg