Login
You're viewing the functional.cafe public feed.
  • Oct 25, 2026, 12:20 PM

    @PvN i learned just by the info manual, linked elsewhere in thread, and by looking at a few similar major modes to what i was doing. Theres not much to it as such, a mode declaration, a hook (optional), and a keymap mainly i guess.

    💬 1🔄 0⭐ 0

Replies

  • Oct 25, 2026, 3:03 PM

    «a mode declaration, a hook (optional), and a keymap mainly»

    Mainly, yes.

    Some modes need more: for example, redefining the notion of S-expressions for C-M-f, C-M-u, etc.
    This may be counted outside the mode in the narrow sense, of course, since this usually involves writing some Emacs Lisp functions for said keymap.

    Occasionally, character syntax classes need tweaking.

    Etc.

    @mousebot @PvN

    #Emacs

    💬 1🔄 0⭐ 0
  • Oct 25, 2026, 3:29 PM

    @vnikolov @mousebot @PvN
    There is also whitespace management and visual effects. Obviously important for programming (indentation, highlights) but some other modes can have other requirements; for example SES changes the buffer to look like a table.

    💬 0🔄 0⭐ 0