[ prog / sol / mona ]

prog


Emacs mode for SchemeBBS markup

1 2020-02-16 22:22
(require 'generic-x)
(define-generic-mode schemebbs-mode
  nil nil
  '(("\\(\\*\\*.+\\*\\*\\)" 1 font-lock-keyword-face)           ; bold
    ("\\(__.+__\\)" 1 font-lock-comment-face)                   ; italic
    ("\\(==.+==\\)" 1 font-lock-constant-face)                  ; monospaced
    ("\\(~~.+~~\\)" 1 font-lock-type-face)                      ; spoiler
    ("^\\(>.+\\)" 1 font-lock-doc-face)                         ; quotes
    ("^\\(```\n\\(.+\n\\)+```\\)$" 1 font-lock-reference-face)) ; code
  nil nil
  "Basic highlighting for composing SchemeBBS posts.")
86


VIP:

do not edit these