Reputation: 169673
I've found a bunch of information (like this) on writing a major-mode for a language, but... I'd like to write a mode along the lines of dired
or tetris
- modes that use the buffer as a GUI.
In the "Major Modes" section of the manual, the "Basic Major Modes" page implies it should base the mode on special-mode
, but I couldn't find any more useful information
Is there any good tutorials on writing a special-mode
derived mode? Any good basic "hello world"-level examples of such a thing?
Upvotes: 6
Views: 1107
Reputation: 791
Zachary Kanfer once gave a talk titled Writing Games with Emacs, where he live-coded a simple tictactoe-mode
. You can find it on YouTube here, and he uploaded his code here.
I found it a great introduction to writing my own special mode.
Upvotes: 1
Reputation: 21192
Take a look on undo-tree-visualizer-mode
in UndoTree.
It's pretty small and is not based on a language.
Upvotes: 2