💾 Archived View for cadence.moe › gemini › bliz.el captured on 2024-08-18 at 19:22:39.
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
(require 'markdown-mode) (setq bliz-highlights '( ("\\(?:^\\|[^\\\\\\n]\\)\\(%\\$[A-Za-z_]+\\)" . (1 font-lock-variable-name-face)) ;; ("^%%%\\(?:.\\|[^.]\\)*?%%%" . font-lock-string-face) ("^%.*" . font-lock-string-face) ("^### \\(.*\\)" . (1 markdown-header-face-3)) ("^## \\(.*\\)" . (1 markdown-header-face-2)) ("^# \\(.*\\)" . (1 markdown-header-face-1)) ("^> \\(.*\\)" . (1 markdown-blockquote-face)) ("^=> \\([-A-Za-z0-9:/._?=&~]+\\)\\( ?.*\\)" . (1 font-lock-type-face)) ("^=> \\([-A-Za-z0-9:/._?=&~]+\\)\\( ?.*\\)" . (2 font-lock-constant-face)) )) (define-derived-mode bliz-mode text-mode "Bliz" "major mode for editing Bliz scripts." (setq font-lock-defaults '(bliz-highlights)) (visual-line-mode) ) (add-to-list 'auto-mode-alist '("\\.bliz\\'" . bliz-mode)) (add-to-list 'auto-mode-alist '("\\.gmi\\'" . bliz-mode)) (provide 'bliz-mode)