idris-hackers / idris-mode

Idris syntax highlighting, compiler-supported editing, interactive REPL and more things for Emacs.
GNU General Public License v3.0
267 stars 70 forks source link

Make hole-list buffer derived from special-mode #576

Closed keram closed 1 year ago

keram commented 1 year ago

Why: This will reduce work we need to do ourself. (Setting the buffer as read only and adding q for quit the buffer)

Special mode is a basic major mode for buffers containing text that is produced specially by Emacs, rather than directly from a file.

Special mode sets the buffer to read-only. Its keymap defines several common bindings, including q for quit-window and g for revert-buffer. https://www.gnu.org/software/emacs/manual/html_node/elisp/Basic-Major-Modes.html#index-special_002dmode

This is first attempt to inherit from special-mode for idris read only buffers. Next candidates are: idris-info-mode, idris-log-mode and idris-compiler-notes-mode