emacs/roleplay.el
2023-11-25 19:41:14 +01:00

15 lines
584 B
EmacsLisp
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(setq rp-color-MIU "#AA60AA")
;(replace-regexp "\\(?:^\\|[-]\\s-*\\)MIU:\\(.*:\\s-)\\(.+?\\)\\($\\|\\s-+[-]\\s-+\\)" (concat "<font style=\"color:" rp-color-miu "\"> \\2 </font>\\3"))
(defun xess ()
(interactive)
(message "%s" (eval(intern-soft "rp-color-MIU")))
)
(defun rp-dialogue ()
(interactive)
(setq last-point (point))
(move-beginning-of-line 1)
(replace-regexp "\\(?:^\\|[-]\\s-*\\)\\(.*\\): \\(.+?\\)\\($\\|\\s-+[-]\\s-+\\)" (concat "<font style=\"color:"(eval(intern-soft "rp-color-\\\\\\1"))"\">\\2 </font>\\3"))
(goto-char last-point)
)