Compare commits

...

2 Commits

Author SHA1 Message Date
an ca49155893 games/eternity: how the hell did that get unbound 2020-03-17 19:31:07 -04:00
an 3b7e6628e1 emacs: add agw-lithdlg-mode 2020-03-17 19:30:49 -04:00
2 changed files with 29 additions and 0 deletions

View File

@ -56,4 +56,32 @@
(defun agw-after-local-vars ()
(unless indent-tabs-mode (smart-tabs-mode 0)))
;; Lithium dialogues mode
(setq agw-lithdlg-highlights
(let* (( keywords '("dialogue" "terminal" "program" "page" "failure"
"finished" "unfinished" "if" "else"))
(functions '("option" "page" "name" "icon" "remote"
"teleport_interlevel" "teleport_intralevel"
"script" "logon" "logoff" "pict" "info"))
( keyword-regexp (regexp-opt keywords 'words))
(function-regexp (regexp-opt functions 'words)))
`(("`.*$" . font-lock-string-face)
( ,keyword-regexp . font-lock-keyword-face)
(,function-regexp . font-lock-function-name-face))))
(setq agw-lithdlg-syntax
(let ((table (make-syntax-table)))
(modify-syntax-entry ?/ ". 14n" table)
(modify-syntax-entry ?* ". 23n" table)
(modify-syntax-entry ?{ "({" table)
(modify-syntax-entry ?} ")}" table)
table))
(define-derived-mode agw-lithdlg-mode fundamental-mode "lithdlg"
"Major mode for Lithium dialogues."
(setq font-lock-defaults '(agw-lithdlg-highlights))
(set-syntax-table agw-lithdlg-syntax))
(provide 'agw-lithdlg-mode)
;; EOF

View File

@ -75,4 +75,5 @@ bind pgdn "menu_pagedown"
bind pgdn "console_pagedown"
bind f11 "gamma /"
bind f12 "quit"
bind mouse1 "attack"
bind mouse2 "altattack"